/* OpenSID Custom - Login Modern Responsive v1.0 (Patch 18) */

html,
body.login.auth-modern {
    min-height: 100%;
}

body.login.auth-modern {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #334155;
    font-family: "Roboto", Arial, sans-serif;
    text-align: left;
}

body.login.auth-modern::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    background: rgba(15, 23, 42, .36);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

body.login.auth-modern .auth-page {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 28px 18px;
    box-sizing: border-box;
}

body.login.auth-modern .auth-card {
    width: 100%;
    max-width: 410px;
    padding: 30px 32px 20px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .25);
    box-sizing: border-box;
}

body.login.auth-modern .auth-header {
    margin-bottom: 24px;
    text-align: center;
}

body.login.auth-modern .auth-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

body.login.auth-modern .auth-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
}

body.login.auth-modern .auth-logo {
    display: block;
    width: auto !important;
    max-width: 82px !important;
    height: auto;
    max-height: 82px;
    object-fit: contain;
}

body.login.auth-modern .auth-bsre {
    width: auto !important;
    max-width: 150px !important;
    max-height: 42px;
    margin: 0 auto 10px;
    object-fit: contain;
}

body.login.auth-modern .auth-identity h1 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.2px;
    text-transform: none;
    text-shadow: none;
    -webkit-text-stroke: 0;
}

body.login.auth-modern .auth-identity p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

body.login.auth-modern .auth-identity p span {
    display: inline-block;
    margin: 0 5px;
    color: #cbd5e1;
}

body.login.auth-modern .auth-content {
    width: 100%;
}

body.login.auth-modern .auth-form,
body.login.auth-modern .auth-content form {
    margin: 0;
}

body.login.auth-modern .auth-field,
body.login.auth-modern .auth-form .form-group {
    margin-bottom: 14px;
}

body.login.auth-modern .auth-form input[type="text"],
body.login.auth-modern .auth-form input[type="password"],
body.login.auth-modern .auth-content input[type="text"],
body.login.auth-modern .auth-content input[type="password"] {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #d9e0e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    color: #1e293b;
    font-size: 14px;
    font-weight: 400;
    line-height: 46px;
    text-align: left;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.login.auth-modern .auth-form input[type="text"]:focus,
body.login.auth-modern .auth-form input[type="password"]:focus,
body.login.auth-modern .auth-content input[type="text"]:focus,
body.login.auth-modern .auth-content input[type="password"]:focus {
    outline: none;
    border: 1px solid #249653;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 150, 83, .12);
}

body.login.auth-modern input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

body.login.auth-modern .auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

body.login.auth-modern .auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}

body.login.auth-modern .auth-checkbox input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #249653;
}

body.login.auth-modern .auth-link {
    color: #287ea7;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

body.login.auth-modern .auth-link:hover,
body.login.auth-modern .auth-link:focus {
    color: #175f82;
    text-decoration: underline;
}

body.login.auth-modern .auth-submit {
    margin-bottom: 0 !important;
}

body.login.auth-modern .auth-form button.btn-login,
body.login.auth-modern .auth-content form button.btn {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #249653;
    box-shadow: 0 8px 18px rgba(36, 150, 83, .20);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 46px;
    text-shadow: none;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.login.auth-modern .auth-form button.btn-login:hover,
body.login.auth-modern .auth-content form button.btn:hover,
body.login.auth-modern .auth-form button.btn-login:focus,
body.login.auth-modern .auth-content form button.btn:focus {
    outline: 0;
    opacity: 1;
    background: #1f8248;
    box-shadow: 0 10px 22px rgba(36, 150, 83, .24);
    color: #fff;
}

body.login.auth-modern .auth-form button.btn-login:active,
body.login.auth-modern .auth-content form button.btn:active {
    transform: translateY(1px);
}

body.login.auth-modern .auth-form button[disabled],
body.login.auth-modern .auth-content form button[disabled] {
    cursor: not-allowed;
    opacity: .62;
}

body.login.auth-modern .auth-captcha {
    margin: 2px 0 12px !important;
    text-align: center;
}

body.login.auth-modern .auth-captcha-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 4px 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}

body.login.auth-modern .auth-captcha-image img {
    display: block;
    max-width: 180px;
    max-height: 48px;
}

body.login.auth-modern .auth-captcha small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

body.login.auth-modern .auth-recaptcha {
    display: flex;
    justify-content: center;
    margin: 2px 0 14px;
    overflow: hidden;
}

body.login.auth-modern .auth-alt-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

body.login.auth-modern .auth-otp-link {
    font-size: 13px;
}

body.login.auth-modern .auth-alert {
    margin: -4px 0 18px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

body.login.auth-modern .auth-alert p {
    margin: 0;
}

body.login.auth-modern .auth-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #edf0f3;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

body.login.auth-modern .error {
    display: block;
    padding-top: 5px;
    color: #dc2626;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
}

body.login.auth-modern .alert-warning,
body.login.auth-modern .alert-danger,
body.login.auth-modern .alert-success,
body.login.auth-modern .alert-info {
    line-height: 1.55;
}

body.login.auth-modern .auth-content .alert h5,
body.login.auth-modern .auth-content .alert p {
    line-height: 1.55;
}

body.login.auth-modern .auth-content hr {
    border-color: #edf0f3;
}

@media (max-width: 480px) {
    body.login.auth-modern {
        background-attachment: scroll !important;
    }

    body.login.auth-modern .auth-page {
        align-items: flex-start;
        padding: 20px 14px;
    }

    body.login.auth-modern .auth-card {
        max-width: 100%;
        padding: 25px 22px 18px;
        border-radius: 16px;
    }

    body.login.auth-modern .auth-header {
        margin-bottom: 20px;
    }

    body.login.auth-modern .auth-logo-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 10px;
    }

    body.login.auth-modern .auth-logo {
        max-width: 72px !important;
        max-height: 72px;
    }

    body.login.auth-modern .auth-identity h1 {
        font-size: 20px;
    }

    body.login.auth-modern .auth-identity p {
        font-size: 12px;
    }

    body.login.auth-modern .auth-options {
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    body.login.auth-modern .auth-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.login.auth-modern .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
