/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    min-height: 100vh;
}

.auth-domain body {
    background: linear-gradient(180deg, #f5f7f6 0%, #eef3f1 100%);
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.logo h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.feature .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Friend Request Card */
.friend-request-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.friend-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.friend-request-card h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.friend-info {
    margin-bottom: 30px;
}

.friend-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.friend-info .subtitle {
    color: #666;
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-ios {
    background: #000;
    color: white;
}

.btn-android {
    background: #01875f;
    color: white;
}

.btn-ios:hover, .btn-android:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Download Section */
.download-section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.download-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
    display: none;
}

.download-options p {
    margin-bottom: 15px;
    color: #666;
}

.action-buttons {
    margin-top: 20px;
}

/* Error Card */
.error-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.error-card h2 {
    color: #f44336;
    margin-bottom: 15px;
}

.error-card p {
    margin-bottom: 25px;
    color: #666;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.auth-domain .landing-page,
.auth-domain .landing-footer {
    display: none;
}

.auth-domain-page {
    display: none;
}

.auth-domain .auth-domain-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-shell {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(9, 94, 76, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(18, 42, 36, 0.08);
    padding: 40px 28px;
    text-align: center;
}

.auth-mark {
    font-size: 2rem;
    margin-bottom: 16px;
}

.auth-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0b6450;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-shell h1 {
    font-size: 2rem;
    line-height: 1.15;
    color: #13211d;
    margin-bottom: 12px;
}

.auth-copy {
    font-size: 1rem;
    line-height: 1.6;
    color: #64706b;
    margin-bottom: 24px;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(11, 100, 80, 0.14);
    background: rgba(11, 100, 80, 0.04);
    color: #0b6450;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-link:hover {
    background: rgba(11, 100, 80, 0.08);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }

    .auth-shell {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .auth-shell h1 {
        font-size: 1.7rem;
    }
    
    .friend-request-card {
        padding: 30px 20px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 200px;
        justify-content: center;
    }
}
