:root {
    --primary-color: #0C3B7C;
    --secondary-color: #0F4C95;
    --text-color: #102A43;
    --card-bg: #FFFFFF;
    --background-color: #F8FAFC;
    --accent-color: #2563EB;
    --gradient-primary: linear-gradient(135deg, #0C3B7C 0%, #2563EB 100%);
    --border-color: #E2E8F0;
    --hover-bg: #F7FAFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(15, 76, 149, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    padding: 1.25rem 0;
    background-color: var(--primary-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

    .logo img {
        width: 180px;
        height: 45px;
        object-fit: contain;
        margin-right: 0.75rem;
    }

main {
    min-height: calc(100vh - 140px);
    padding: 4rem 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

    h2:after {
        content: '';
        position: absolute;
        width: 60px;
        height: 3px;
        background: var(--accent-color);
        bottom: -8px;
        left: 0;
        border-radius: 2px;
    }

.auth-section {
    margin-bottom: 4rem;
    position: relative;
}

.section-divider {
    margin: 3rem 0;
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .auth-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-color);
        background-color: var(--hover-bg);
    }

.auth-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.auth-logo {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background-color: #F1F5F9;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.auth-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.auth-description {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: auto;
    line-height: 1.5;
}

.auth-features {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #475569;
}

    .feature i {
        color: var(--accent-color);
        margin-right: 0.5rem;
        font-size: 0.8rem;
    }

.connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: 100%;
    box-shadow: 0 2px 5px rgba(15, 76, 149, 0.2);
}

    .connect-btn:hover {
        opacity: 0.95;
        box-shadow: 0 5px 12px rgba(15, 76, 149, 0.25);
    }

    .connect-btn i {
        margin-right: 0.5rem;
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .modal.active {
        opacity: 1;
        pointer-events: all;
    }

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(15, 76, 149, 0.2);
}

    .btn:hover {
        opacity: 0.95;
        box-shadow: 0 5px 15px rgba(15, 76, 149, 0.25);
    }

.success-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    background-color: var(--accent-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

footer {
    padding: 3rem 0;
    text-align: center;
    color: #64748B;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    background-color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: var(--accent-color);
    }

.copyright {
    color: #64748B;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0;
    }

    .logo img {
        width: 180px;
        height: 40px;
    }

    main {
        padding: 2.5rem 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}
