:root {
    --primary-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --secondary-gradient: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* Redefine body and container for the login view */
.login-page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(31, 41, 55, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 123, 255, 0.03) 0px, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 10000;
    /* Above template elements */
    font-family: 'Outfit', sans-serif;
    overflow-y: auto;
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInDown 0.6s ease-out;
}

.brand-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #111827;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    transition: all 0.4s ease;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pane-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pane-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.input-styled {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
}

.input-styled:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: #10b981;
}

.btn-success:hover {
    background: #059669;
}

.error-alert {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: shake 0.4s ease-in-out;
}

/* Modal and Notifications */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.modal-content {
    background: #fff !important;
    padding: 2.5rem;
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 1.5rem;
    transition: all 0.2s;
}

#notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 16px;
    color: white;
    font-weight: 700;
    z-index: 110000;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notification.show {
    transform: translateX(0);
}

#notification.success {
    background: #10b981;
}

#notification.error {
    background: #ef4444;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.75rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .pane-title {
        font-size: 1.5rem;
    }
}