@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --primary-color: #023047;
    --secondary-color: #012233;
    --accent-color: #FFB703;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --text-dark: #023047;
    --text-light: #4a5568;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-hero-section {
    min-height: 100vh;
    background: #FEFAE0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    padding: 48px 32px 32px;
    background: var(--primary-color);
    color: var(--white);
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.auth-logo-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.auth-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    font-family: 'Inter', sans-serif;
    margin: 0;
    font-weight: 400;
}

.auth-form-container {
    padding: 48px 32px;
}


.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.label-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--gray-light);
    color: var(--text-dark);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--white);
}

.auth-form input::placeholder {
    color: #a0aec0;
}

.auth-error {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #feb2b2;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.1);
}

.error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.field-error {
    color: #c53030;
    font-size: 0.85rem;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-error .error-icon {
    width: 16px;
    height: 16px;
}

.help-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.auth-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: var(--primary-color);
    color: var(--accent-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(2, 48, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 48, 71, 0.4);
    background: var(--secondary-color);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: #023047;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.social-btn:hover {
    background: #f8fafc;
    border-color: #023047;
    box-shadow: 0 4px 16px rgba(2,48,71,0.15);
    transform: translateY(-1px);
}
.social-btn img {
    width: 22px;
    height: 22px;
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #a0aec0;
    font-size: 0.9rem;
}
.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.social-divider span {
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
}

.auth-redirect {
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary-color);
}

.auth-link:hover::after {
    width: 100%;
}


/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        margin: 0 16px;
    }

    .auth-content {
        border-radius: 12px;
    }

    .auth-header {
        padding: 32px 24px 24px;
    }

    .auth-title {
        font-size: 1.875rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .auth-form-container {
        padding: 32px 24px;
    }

    .auth-submit-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .auth-hero-section {
        padding: 16px;
    }

    .auth-header {
        padding: 24px 20px 20px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-form-container {
        padding: 24px 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}
