﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    body.login-body {
        min-height: 100vh;
        background-image: url('/img/lib/background-login.jpg');
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 515px;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    padding: 34px 34px 28px 34px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.login-logo {
    margin-bottom: 28px;
}

    .login-logo img {
        width: 160px;
        height: auto;
        display: inline-block;
    }

.input-group-custom {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9aa3b2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .input-icon svg {
        width: 20px;
        height: 20px;
        stroke: #9aa3b2;
    }

.form-input {
    width: 100%;
    height: 54px;
    border: 1px solid #e5e8ef;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0 16px;
    font-size: 18px;
    color: #67707f;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .form-input.with-icon {
        padding-left: 48px;
    }

    .form-input::placeholder {
        color: #9ca5b4;
    }

    .form-input:focus {
        outline: none;
        border-color: #3c74dd;
        box-shadow: 0 0 0 3px rgba(60, 116, 221, 0.08);
    }

.btn-login {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(90deg, #3f77dd, #336ed8);
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: filter .2s ease;
}

    .btn-login:hover {
        filter: brightness(.98);
    }

.login-link {
    margin-top: 24px;
}

    .login-link a {
        color: #798190;
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

.error-box {
    background: #ef5350;
    color: #fff;
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    text-align: left;
}

.success-box {
    background: #43a047;
    color: #fff;
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    text-align: left;
}

.helper-text {
    text-align: left;
    color: #727b88;
    font-size: 12px;
    margin: -4px 0 12px 0;
}

@media (max-width: 768px) {
    .login-card {
        max-width: 92%;
        padding: 28px 22px 24px 22px;
        border-radius: 18px;
    }

    .login-logo {
        margin-bottom: 22px;
    }

        .login-logo img {
            width: 125px;
        }

    .form-input {
        height: 50px;
        font-size: 16px;
    }

        .form-input.with-icon {
            padding-left: 44px;
        }

    .input-icon {
        left: 16px;
        width: 18px;
        height: 18px;
    }

        .input-icon svg {
            width: 18px;
            height: 18px;
        }

    .btn-login {
        height: 54px;
        font-size: 20px;
    }
}

.validation-summary:empty {
    display: none;
}

.field-validation {
    display: block;
    margin-top: 6px;
    padding-left: 4px;
    color: #d64541;
    font-size: 12px;
    text-align: left;
}

.input-validation-error {
    border-color: #ef5350 !important;
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.08) !important;
}

.validation-summary:empty {
    display: none;
}

.field-validation {
    display: block;
    margin-top: 6px;
    padding-left: 4px;
    color: #d64541;
    font-size: 12px;
    text-align: left;
}

.input-validation-error {
    border-color: #ef5350 !important;
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.08) !important;
}

.btn-secondary-login {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: rgba(255,255,255,0.94);
    color: #5f6b7a;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

    .btn-secondary-login:hover {
        background: #f7f9fc;
    }