/* ==========================================================================
   Apna Hamsafar - Premium Aesthetics & Auth Styles
   Adds modern glassmorphism, Google Auth buttons, and new dashboard layouts.
   ========================================================================== */

/* Enhanced Root Variables */
:root {
    --primary-vibrant: #b2144a; /* More vibrant primary */
    --gold-vibrant: #ecc57c;
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.dark-theme-active .glass-card {
    background: rgba(18, 16, 16, 0.65);
    border: 1px solid rgba(223, 183, 108, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Auth Specific Styles (Email/Password & Google) */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-muted-dark);
    font-size: 0.9rem;
}
.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.auth-separator:not(:empty)::before {
    margin-right: .5em;
}
.auth-separator:not(:empty)::after {
    margin-left: .5em;
}

.btn-google {
    background-color: #ffffff;
    color: #444;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
}
.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.btn-google img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Password Input Enhancements */
.login-phone-group input[type="email"],
.login-phone-group input[type="password"] {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 1.05rem;
    outline: none;
    background: var(--card-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    width: 100%;
}
.input-with-icon {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--card-light);
    transition: border-color 0.3s;
}
.input-with-icon:focus-within {
    border-color: var(--secondary);
}
.input-with-icon i {
    padding: 0 16px;
    color: var(--primary);
    font-size: 1.1rem;
    background: rgba(223, 183, 108, 0.12);
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

/* Dashboard Refinements */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.dashboard-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-vibrant) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(178, 20, 74, 0.25);
}
.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(223,183,108,0.15) 0%, transparent 60%);
    transform: rotate(30deg);
}
.dashboard-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(223, 183, 108, 0.3);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}
.profile-card-glass:hover {
    transform: translateY(-5px);
}
.profile-card-glass h3 {
    color: var(--primary-vibrant);
    border-bottom: 2px dashed rgba(223, 183, 108, 0.4);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Micro Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.btn-hover-effect {
    position: relative;
    overflow: hidden;
}
.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}
.btn-hover-effect:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
