:root {
    --auth-primary: #1e3a8a;
    --auth-primary-dark: #1e40af;
    --auth-blue-light: #3b82f6;
    --auth-white: #ffffff;
    --auth-text: #1f2937;
    --auth-text-light: #6b7280;
    --auth-border: #e5e7eb;
    --auth-shadow: 0 10px 40px rgba(30, 58, 138, 0.15);
    --auth-shadow-lg: 0 20px 60px rgba(30, 58, 138, 0.2);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--auth-white);
}

.auth-page::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.auth-page::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

.auth-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.auth-shape-1 {
    width: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 100px;
    top: 60%;
    right: 8%;
    animation-delay: 5s;
}

.auth-shape-3 {
    width: 120px;
    bottom: 15%;
    left: 10%;
    animation-delay: 10s;
}

.auth-shape-4 {
    width: 80px;
    top: 30%;
    right: 15%;
    animation-delay: 3s;
}

.auth-shape-5 {
    width: 90px;
    bottom: 25%;
    right: 20%;
    animation-delay: 7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.auth-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--auth-shadow-lg);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--auth-primary);
    letter-spacing: -0.5px;
    margin-bottom: 0;
    line-height: 1.4;
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.875rem;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-blue-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.auth-heading {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.3;
}

.auth-subheading {
    font-size: 0.9375rem;
    color: var(--auth-text-light);
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.auth-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    font-size: 0.9375rem;
    color: var(--auth-text);
    background: var(--auth-white);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    line-height: 1.5;
    min-height: 48px;
}

.auth-form-input:focus {
    border-color: var(--auth-blue-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #fafbfc;
}

.auth-form-input::placeholder {
    color: #9ca3af;
    font-size: 0.9375rem;
}

.auth-forgot-link {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--auth-blue-light);
    text-decoration: none;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
    line-height: 1.4;
}

.auth-forgot-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: var(--auth-white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    min-height: 48px;
    box-sizing: border-box;
    line-height: 1.5;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1.25rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.auth-divider-text {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--auth-text-light);
    line-height: 1.4;
}

.auth-social-buttons {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.auth-social-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--auth-white);
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    box-sizing: border-box;
}

.auth-social-btn:hover {
    border-color: var(--auth-blue-light);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-social-btn img {
    width: 24px;
    height: 24px;
}

.auth-footer-text {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--auth-text-light);
    margin-top: 1.5rem;
    line-height: 1.5;
}

.auth-footer-link {
    color: var(--auth-blue-light);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.auth-back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--auth-white);
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: var(--auth-text);
}

.auth-back-btn:hover {
    background: var(--auth-blue-light);
    color: var(--auth-white);
    border-color: var(--auth-blue-light);
    transform: translateX(-4px);
}

@media (max-width: 640px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

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

    .auth-social-buttons {
        flex-direction: column;
    }
}

.auth-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-alert {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
    line-height: 1.5;
    min-height: 42px;
    box-sizing: border-box;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-alert-icon {
    font-size: 1.25rem;
}