/* ========== Login Page Styles ========== */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    z-index: 1;
    padding: 2rem;
    box-sizing: border-box;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 12px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    background: linear-gradient(135deg, #ffffff, rgba(134, 97, 255, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.input-with-icon input {
    padding-left: 3rem;
}

.input-with-icon input:focus + i {
    color: var(--primary-color);
}

.login-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.login-actions button {
    width: 100%;
    padding: 0.85rem;
    font-size: 1.05rem;
}

.login-message {
    text-align: center;
    min-height: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.login-message.error {
    color: var(--error-color);
}

.login-message.success {
    color: var(--success-color);
}

/* Animation for input focus */
.input-with-icon input:focus {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(134, 97, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(134, 97, 255, 0.2);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem;
        max-width: 100%;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .login-header p {
        font-size: 0.95rem;
    }
}