/* Login page specific styles */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0F1012;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    gap: 2.5rem;
}

/* Ambient background effect */
.login-container::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, rgba(108, 92, 231, 0) 70%);
    top: -15%;
    right: -10%;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite alternate;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(69, 173, 168, 0.08) 0%, rgba(69, 173, 168, 0) 70%);
    bottom: -15%;
    left: -10%;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* Branding container for the logo outside the card */
.branding-container {
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
    perspective: 1000px;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo-wrapper .font-logo {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.3) 0%, rgba(108, 92, 231, 0) 70%);
    top: 0;
    left: 0;
    filter: blur(15px);
    z-index: 1;
    opacity: 0.8;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Login card styles */
.login-card {
    width: 100%;
    max-width: 420px;
    background-color: #1A1B1F;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                0 0 20px rgba(108, 92, 231, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(108, 92, 231, 0.6), transparent);
    z-index: 5;
}

.login-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #F7F7F7;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 0.95rem;
    color: #A0A0A0;
    font-weight: 400;
}

.login-form {
    padding: 1.5rem 2rem 2.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #A0A0A0;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: rgba(15, 16, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #F7F7F7;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.form-input:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.form-error {
    color: #FF6B6B;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.login-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #6C5CE7 0%, #8A79FF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.login-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: all 0.4s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.25);
}

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

.login-btn:disabled {
    background: linear-gradient(135deg, #9191A9 0%, #B3B3C3 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reset password modal */
.reset-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.reset-modal.show {
    opacity: 1;
    visibility: visible;
}

.reset-modal-content {
    width: 90%;
    max-width: 400px;
    background-color: #1A1B1F;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                0 0 20px rgba(108, 92, 231, 0.1);
    position: relative;
    overflow: hidden;
}

.reset-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(108, 92, 231, 0.6), transparent);
}

.reset-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.reset-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F7F7F7;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.reset-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.reset-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.reset-modal-body {
    padding: 1.75rem 1.5rem;
}

.reset-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background-color: rgba(255, 255, 255, 0.05);
    color: #A0A0A0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #F7F7F7;
}

.btn-primary {
    background: linear-gradient(135deg, #6C5CE7 0%, #8A79FF 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.25);
}

/* Alert message styling */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 3px solid transparent;
}

.alert-success {
    background-color: rgba(66, 186, 150, 0.1);
    border-left-color: #42BA96;
    color: #A0F3D6;
}

.alert-error {
    background-color: rgba(255, 107, 107, 0.1);
    border-left-color: #FF6B6B;
    color: #FFB8B8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    
    
    .login-card {
        border-radius: 16px;
    }
    
    .login-header {
        padding: 2rem 1.5rem 1.25rem;
    }
    
    .login-form {
        padding: 1.25rem 1.5rem 2rem;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
}