﻿/* =========================================================
   LOGIN PAGE CSS
   Related to:
   - Login/Index.cshtml
   ========================================================= */

html,
body.login-page {
    min-height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

body.login-page {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(74, 134, 197, 0.22), transparent 35%), radial-gradient(circle at bottom right, rgba(15, 61, 117, 0.22), transparent 30%), linear-gradient(135deg, #eef5fc 0%, #dfeefc 45%, #cfe2f6 100%);
    color: #243447;
}

.login-page__background {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
    opacity: 0.16;
    z-index: 0;
}

.login-page__overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 100%);
    z-index: 1;
}

.login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(214, 222, 232, 0.95);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.06);
    padding: 34px 30px 28px;
}

.login-card__brand {
    margin-bottom: 26px;
    text-align: center;
}

 

.login-card__eyebrow {
    color: #4a86c5;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.login-card__title {
    margin: 0;
    color: #0f3d75;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-card__subtitle {
    margin: 10px 0 0;
    color: #5b6b7f;
    font-size: 0.95rem;
    line-height: 1.6;
}

.login-form {
    margin-top: 6px;
}

.form-group-modern {
    margin-bottom: 18px;
}

.form-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #0f3d75;
    font-weight: 600;
    font-size: 0.92rem;
}

.input-group-modern,
.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    z-index: 3;
    color: #7b8da3;
    font-size: 0.95rem;
    pointer-events: none;
}

.modern-input {
    width: 100%;
    height: 48px;
    border: 1px solid #cfdae6;
    border-radius: 12px;
    background: #ffffff;
    color: #243447;
    font-size: 0.95rem;
    padding: 0 14px 0 42px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.modern-input--password {
    padding-right: 50px;
}

.modern-input::placeholder {
    color: #94a3b8;
}

.modern-input:hover {
    border-color: #b9cbde;
    background: #fcfdff;
}

.modern-input:focus {
    border-color: #7fb3e6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 134, 197, 0.14);
    outline: none;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6b7d92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .password-toggle-btn:hover,
    .password-toggle-btn:focus {
        background: #eef5fc;
        color: #0f3d75;
        outline: none;
    }

    .password-toggle-btn:active {
        transform: scale(0.96);
    }

.login-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 22px;
}

.custom-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .custom-remember .form-check-input {
        margin-top: 0;
        border-color: #b8cbe0;
        width: 18px;
        height: 18px;
    }

        .custom-remember .form-check-input:checked {
            background-color: #0f3d75;
            border-color: #0f3d75;
        }

        .custom-remember .form-check-input:focus {
            box-shadow: 0 0 0 3px rgba(74, 134, 197, 0.16);
        }

    .custom-remember .form-check-label {
        color: #425466;
        font-size: 0.92rem;
        font-weight: 500;
        cursor: pointer;
    }

.login-btn {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f3d75 0%, #4a86c5 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 61, 117, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .login-btn:hover,
    .login-btn:focus {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(15, 61, 117, 0.28);
        filter: brightness(1.02);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.validation-summary-errors {
    border: 1px solid #f1c3c3;
    background: #fff5f5;
    color: #b42318;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

.field-validation-error,
.text-danger {
    display: block;
    margin-top: 6px;
    color: #c62828;
    font-size: 0.82rem;
    font-weight: 500;
}

@media (max-width: 576px) {
    .login-shell {
        padding: 16px;
    }

    .login-card {
        max-width: 100%;
        padding: 26px 20px 22px;
        border-radius: 16px;
    }

 

    .login-card__title {
        font-size: 1.65rem;
    }

    .login-card__subtitle {
        font-size: 0.9rem;
    }

    .modern-input {
        height: 46px;
    }

    .login-btn {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card,
    .modern-input,
    .password-toggle-btn,
    .login-btn {
        transition: none !important;
    }
}
