/* WeMa Leisure login — used by login.php (+ base for master_access) */
*:not(.svg-inline--fa) {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

body,
body.wl-login-body {
    --wl-blue: #7EC8E3;
    --wl-blue-deep: #5BB6D9;
    --wl-ink: #2D3436;
    --wl-muted: #6B7280;
    --wl-line: #E6EBF0;
    --wl-soft: #F4F8FB;
    margin: 0;
    min-height: 100vh;
    height: auto;
    position: relative;
    color: var(--wl-ink);
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(126, 200, 227, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 45% at 95% 10%, rgba(126, 200, 227, 0.22), transparent 50%),
        linear-gradient(180deg, #FFFFFF 0%, #F7FBFD 100%);
}

.wl-login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 24px;
    box-sizing: border-box;
}

.wl-login-brand {
    text-align: center;
    margin-bottom: 20px;
}

img#logo,
.wl-login-logo {
    position: static !important;
    width: min(220px, 70vw) !important;
    max-width: 240px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
    left: auto !important;
}

#credentialsBlock,
.wl-login-card {
    width: min(440px, calc(100vw - 32px));
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(45, 52, 54, 0.04),
        0 12px 40px rgba(45, 52, 54, 0.08);
    border: 1px solid rgba(126, 200, 227, 0.25);
    padding: 28px 28px 24px;
    box-sizing: border-box;
}

.wl-login-heading {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: var(--wl-ink);
}

.wl-login-lead {
    margin: 0 0 22px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--wl-muted);
}

#credentialsBlock .form-group {
    margin: 0;
}

#credentialsBlock label {
    display: block;
    float: none;
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--wl-ink);
}

#credentialsBlock .form-control,
#credentialsBlock #userName,
#credentialsBlock #password,
#credentialsBlock #appName,
#credentialsBlock #bundleID {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--wl-ink);
    background: var(--wl-soft);
    border: 1px solid var(--wl-line);
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 16px;
    -webkit-box-shadow: none;
}

#credentialsBlock .form-control:focus {
    outline: none;
    border-color: var(--wl-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(126, 200, 227, 0.25);
}

#credentialsBlock #loginBtn,
#credentialsBlock .wl-login-btn,
#loginBtn {
    display: block;
    width: 100%;
    float: none;
    height: auto;
    margin: 8px 0 0 0;
    padding: 14px 22px;
    border: none;
    border-radius: 999px;
    background: var(--wl-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(126, 200, 227, 0.35);
}

#credentialsBlock #loginBtn:hover,
#credentialsBlock .wl-login-btn:hover,
#loginBtn:hover {
    background: var(--wl-blue-deep);
}

#credentialsBlock .wl-login-btn-secondary,
#credentialsBlock #createNewApp {
    margin-top: 10px;
    background: transparent;
    color: var(--wl-ink);
    border: 1px solid var(--wl-line);
    box-shadow: none;
}

#credentialsBlock .wl-login-btn-secondary:hover,
#credentialsBlock #createNewApp:hover {
    background: var(--wl-soft);
    border-color: var(--wl-blue);
}

#credentialsBlock #passwordForgotten {
    float: none;
    width: auto;
    margin-top: 12px;
    padding: 0;
    height: auto;
    background: transparent;
    color: var(--wl-blue-deep);
    border: none;
    box-shadow: none;
    font-weight: 600;
}

#appWizard {
    display: none;
}

.wl-login-footer {
    margin: 20px 0 0;
    font-size: 12px;
    color: var(--wl-muted);
}

.wl-login-footer a {
    color: var(--wl-blue-deep);
    text-decoration: none;
    font-weight: 500;
}

.wl-login-footer a:hover {
    text-decoration: underline;
}

/* Select2 (beast mode) */
.select2-container {
    margin-bottom: 16px !important;
    font-size: 14px;
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 8px 12px;
    border: 1px solid var(--wl-line) !important;
    border-radius: 12px !important;
    background: var(--wl-soft) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    color: var(--wl-ink);
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-results__option,
.select2-search__field {
    padding: 8px 12px !important;
}

#credentialsBlock #userNameKnown {
    background: var(--wl-ink);
    color: #FFFFFF;
    padding: 16px;
    font-size: 15pt;
    border-radius: 12px;
    margin-bottom: 16px;
}

#credentialsBlock #userNameUnknown {
    margin: 0 0 16px 0;
}
