/* Module: Login */
body.login-body {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 10;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper .form-control {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-icon-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(63, 143, 58, 0.2);
}

.input-icon-wrapper > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s;
}

.input-icon-wrapper .form-control:focus ~ i {
    color: var(--primary-color);
}

.input-icon-wrapper .form-control.password-input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.toggle-password i {
    position: static;
    transform: none;
    font-size: 1rem;
    color: inherit;
    pointer-events: auto;
}

.toggle-password:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.toggle-password:focus {
    outline: none;
    color: var(--primary-color);
}

.btn.login-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0c0f16 !important;
    background: var(--primary-color) !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.login-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
}

.btn.login-btn:active {
    transform: scale(0.98);
}

.alert-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
