/* D-SYA public authentication visual system.
   Shared by Pelanggan, Driver, and Merchant login screens. */

#screen-auth.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1rem !important;
}

#screen-auth .auth-card {
    box-sizing: border-box !important;
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 1.75rem !important;
    border-radius: 24px !important;
}

#screen-auth .auth-logo {
    margin-bottom: 1rem !important;
}

#screen-auth .auth-logo > img {
    width: 72px !important;
    height: 72px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 auto 0.55rem !important;
}

#screen-auth .auth-logo .role-badge,
#screen-auth .role-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    min-height: 34px !important;
    padding: 0.3rem 0.85rem !important;
    margin: 0 auto 0.55rem !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    letter-spacing: 0.55px !important;
    text-transform: uppercase !important;
    background: rgba(2,132,199,0.12) !important;
    border: 1px solid rgba(2,132,199,0.35) !important;
    color: #0284c7 !important;
    box-sizing: border-box !important;
}

#screen-auth .auth-logo .role-badge img,
#screen-auth .role-badge img {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 !important;
    border-radius: 0 !important;
    vertical-align: middle !important;
}

#screen-auth .auth-logo h1 {
    font-size: 1.3rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

#screen-auth .auth-logo p {
    margin-top: 0.25rem !important;
    line-height: 1.25 !important;
}

#screen-auth .role-selector-bar {
    margin-bottom: 1.15rem !important;
}

#screen-auth .role-selector-label {
    display: block !important;
    margin-bottom: 0.45rem !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.1px !important;
    color: #475569 !important;
    text-transform: uppercase !important;
}

#screen-auth .role-selector-grid {
    width: 100% !important;
    min-height: 78px !important;
    box-sizing: border-box !important;
    padding: 4px !important;
}

#screen-auth .role-chip {
    min-height: 68px !important;
    padding: 0.45rem 0.2rem !important;
    gap: 0.15rem !important;
    box-sizing: border-box !important;
    line-height: 1.1 !important;
}

#screen-auth .role-chip img,
#screen-auth .role-chip .public-role-icon,
#screen-auth .role-chip .vehicle-inline-icon,
#screen-auth .role-chip .vehicle-inline-icon--small {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 0 0.1rem !important;
    vertical-align: middle !important;
}

#screen-auth .role-chip span {
    display: block !important;
    line-height: 1.1 !important;
}

#screen-auth .tab-switcher,
#screen-auth .tab-sw {
    min-height: 48px !important;
    margin-bottom: 1.15rem !important;
}

#screen-auth .tab-switcher button,
#screen-auth .tab-sw button {
    min-height: 40px !important;
}

#screen-auth .form-label {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
}

#screen-auth #customer-password-help,
#screen-auth #password-help {
    display: block !important;
    min-height: 2.2em !important;
    line-height: 1.25 !important;
    margin-top: 0.35rem !important;
}

#screen-auth .form-input,
#screen-auth .phone-wrap,
#screen-auth .phone-input-wrap {
    font-size: 0.9rem !important;
}

#screen-auth .form-input {
    min-height: 48px !important;
    padding: 0.85rem 1rem !important;
}

#screen-auth .phone-wrap,
#screen-auth .phone-input-wrap {
    min-height: 48px !important;
}

#screen-auth .phone-wrap input,
#screen-auth .phone-input-wrap input {
    min-height: 46px !important;
}

#screen-auth .btn-main {
    min-height: 48px !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
}

#screen-auth .btn-back-dashboard {
    min-height: 46px !important;
    margin-top: 0.8rem !important;
    padding: 0.7rem 0.9rem !important;
    font-size: 0.82rem !important;
    box-sizing: border-box !important;
}

#screen-reset-password.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1rem !important;
}

#screen-reset-password .auth-card {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 1.75rem !important;
    box-sizing: border-box !important;
}

@media (max-height: 700px) {
    #screen-auth .auth-card {
        padding: 1.25rem !important;
    }

    #screen-auth .auth-logo {
        margin-bottom: 0.7rem !important;
    }

    #screen-auth .auth-logo > img {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.35rem !important;
    }

    #screen-auth .role-selector-grid {
        min-height: 70px !important;
    }

    #screen-auth .role-chip {
        min-height: 60px !important;
    }

    #screen-auth .role-chip img,
    #screen-auth .role-chip .public-role-icon,
    #screen-auth .role-chip .vehicle-inline-icon,
    #screen-auth .role-chip .vehicle-inline-icon--small {
        width: 28px !important;
        height: 28px !important;
    }
}
