/* =========================================================
   SDO DavOcc DTS — Authentication UI
   Full merged stylesheet v1.0.1
   ========================================================= */

/* ---------- Shared auth input components ---------- */
.input-with-icon{
    position:relative;
    display:flex;
    align-items:center;
    width:100%;
}

.input-with-icon>i{
    position:absolute;
    left:0;
    top:0;
    width:42px;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#728078;
    font-size:13px;
    line-height:1;
    pointer-events:none;
    z-index:3;
}

.auth-card .form-stack .input-with-icon > input,
.auth-card .form-stack .input-with-icon > select{
    width:100%;
    min-width:0;
    min-height:47px;
    height:47px;
    margin:0;
    border:1px solid #dce3df;
    border-radius:9px;
    background:#fff;
    color:var(--ink);
    outline:none;
    padding-left:42px !important;
    padding-right:12px !important;
    text-indent:0 !important;
    line-height:1.2;
}

.auth-card .form-stack .password-input-wrap > input{
    padding-right:48px !important;
}

.auth-card .form-stack .input-with-icon > input:focus,
.auth-card .form-stack .input-with-icon > select:focus{
    border-color:var(--green-700);
    box-shadow:0 0 0 3px rgba(17,128,85,.09);
}

.auth-card .form-stack .password-input-wrap{
    position:relative;
}

.password-toggle{
    position:absolute;
    right:4px;
    top:50%;
    transform:translateY(-50%);
    width:39px;
    height:39px;
    margin:0;
    padding:0;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#607068;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:4;
}

.password-toggle:hover{
    background:var(--green-50);
    color:var(--green-800);
}

.password-toggle:focus-visible{
    outline:2px solid var(--green-700);
    outline-offset:1px;
}

.password-toggle i{
    position:static !important;
    width:auto !important;
    height:auto !important;
    pointer-events:none;
    font-size:14px;
}

/* Chrome / Edge autofill */
.auth-card .form-stack .input-with-icon > input:-webkit-autofill,
.auth-card .form-stack .input-with-icon > input:-webkit-autofill:hover,
.auth-card .form-stack .input-with-icon > input:-webkit-autofill:focus{
    -webkit-text-fill-color:var(--ink);
    transition:background-color 99999s ease-in-out 0s;
    caret-color:var(--ink);
}

/* ---------- Login options ---------- */
.login-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.text-link,
.back-link{
    color:var(--green-800);
    font-weight:800;
    font-size:12px;
    text-decoration:none;
}

.text-link:hover,
.back-link:hover{
    text-decoration:underline;
}

.back-link{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-bottom:26px;
}

/* ---------- CAPTCHA ---------- */
.captcha-block{
    padding:13px;
    border:1px solid var(--line);
    background:#f8faf9;
    border-radius:11px;
}

.captcha-heading{
    min-height:24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:9px;
}

.captcha-heading>span{
    font-size:11px;
    font-weight:800;
    color:#44534b;
}

.captcha-refresh{
    flex:0 0 auto;
    min-height:24px;
    border:0;
    background:transparent;
    color:var(--green-800);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:10px;
    font-weight:800;
    padding:3px 2px;
    border-radius:7px;
}

.captcha-refresh:hover{
    background:var(--green-50);
}

.captcha-refresh:disabled{
    opacity:.55;
    cursor:wait;
}

.captcha-refresh i{
    font-size:11px;
}

.captcha-row{
    display:grid;
    grid-template-columns:minmax(140px,1fr) 110px;
    gap:9px;
    align-items:stretch;
}

.captcha-question{
    min-height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px dashed #b9c8c0;
    border-radius:8px;
    font-size:16px;
    font-weight:900;
    letter-spacing:.03em;
}

.captcha-row input{
    width:100%;
    min-height:43px;
    border:1px solid #dce3df;
    border-radius:8px;
    padding:0 10px;
    text-align:center;
    font-weight:800;
    outline:none;
    background:#fff;
    color:var(--ink);
}

.captcha-row input:focus{
    border-color:var(--green-700);
    box-shadow:0 0 0 3px rgba(17,128,85,.09);
}

.field-error{
    color:#a52828;
    display:block;
    margin-top:7px;
}

/* ---------- Buttons / divider ---------- */
.btn-secondary{
    background:#fff;
    border:1px solid #cdd8d2;
    color:var(--green-900);
}

.btn-secondary:hover{
    background:var(--green-50);
}

.create-account-button{
    text-decoration:none;
}

.auth-divider{
    display:flex;
    align-items:center;
    gap:10px;
    margin:22px 0 15px;
    color:#8a9690;
    font-size:10px;
}

.auth-divider::before,
.auth-divider::after{
    content:"";
    flex:1;
    height:1px;
    background:var(--line);
}

/* ---------- Registration ---------- */
.registration-shell{
    min-height:100vh;
    padding:38px 20px;
    display:grid;
    place-items:center;
}

.registration-card{
    width:min(800px,100%);
}

.registration-brand{
    margin-bottom:18px;
}

.two-column-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.span-2{
    grid-column:1 / -1;
}

.password-rule,
.account-notice{
    display:flex;
    align-items:flex-start;
    gap:9px;
    background:var(--green-50);
    border:1px solid #d7eadf;
    color:#53625b;
    border-radius:10px;
    padding:11px 13px;
    font-size:11px;
    line-height:1.5;
}

.password-rule i,
.account-notice i{
    color:var(--green-700);
    margin-top:2px;
}

.account-notice{
    margin-top:20px;
}

/* ---------- Registration / reset consistency ---------- */
.registration-card .input-with-icon > input,
.registration-card .input-with-icon > select,
.password-card .input-with-icon > input,
.password-card .input-with-icon > select{
    padding-left:42px !important;
}

.registration-card .password-input-wrap > input,
.password-card .password-input-wrap > input{
    padding-right:48px !important;
}

/* ---------- Responsive ---------- */
@media(max-width:680px){
    .two-column-form{
        grid-template-columns:1fr;
    }

    .span-2{
        grid-column:auto;
    }

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

    .captcha-row{
        grid-template-columns:1fr 96px;
    }

    .auth-card .form-stack .input-with-icon > input,
    .auth-card .form-stack .input-with-icon > select{
        min-height:48px;
        height:48px;
        padding-left:40px !important;
    }

    .auth-card .form-stack .input-with-icon > i{
        width:40px;
    }

    .auth-card .form-stack .password-input-wrap > input{
        padding-right:46px !important;
    }

    .auth-card .form-stack .password-toggle{
        width:38px;
        height:38px;
    }
}

/* DTS Login Account-State Warning v1.5.45.31.16 */
.alert.warning {
    background: #fff8e6;
    color: #8a5a00;
    border: 1px solid #efd391;
}

/* DTS Login Remember-Me Checkbox v1.5.45.31.16.1 */
.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    accent-color: #0f7448;
    cursor: pointer;
    flex: 0 0 auto;
}

.check-row input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(15, 116, 72, .24);
    outline-offset: 2px;
}

.check-row input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: .72;
}
