:root {
    --ps-primary: #111827;
    --ps-accent: #0f766e;
    --ps-bg: #f8fafc;
    --ps-surface: #ffffff;
    --ps-border: #e2e8f0;
    --ps-border-soft: #eef2f7;
    --ps-text: #0f172a;
    --ps-muted: #64748b;
    --ps-radius-sm: 10px;
    --ps-radius-md: 14px;
    --ps-radius-lg: 22px;
    --ps-shadow-sm: 0 6px 16px rgba(15, 23, 42, .06);
    --ps-shadow-md: 0 18px 45px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--ps-bg) 100%);
    color: var(--ps-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wt-left {
    min-height: 100vh;
    padding: 56px;
    display: flex;
    align-items: center;
    background: #111827;
    color: #ffffff;
}

.wt-brand {
    max-width: 480px;
}

.auth-logo {
    width: 78px;
    height: auto;
    display: block;
    margin-bottom: 28px;
}

.wt-brand h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
}

.wt-brand h5 {
    margin: 12px 0 0;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 700;
}

.wt-brand p {
    max-width: 420px;
    margin: 22px 0 0;
    color: #94a3b8;
    font-size: .98rem;
    line-height: 1.7;
}

.wt-badge {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(153, 246, 228, .24);
    background: rgba(255, 255, 255, .08);
    color: #99f6e4;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.wt-institutional {
    margin-top: 16px;
    max-width: 420px;
    color: #94a3b8;
    font-size: .86rem;
    line-height: 1.65;
}

.wt-right {
    min-height: 100vh;
    padding: 48px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wt-card {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-lg);
    background: var(--ps-surface);
    box-shadow: var(--ps-shadow-md);
}

.auth-card-logo {
    display: none;
    width: 56px;
    height: auto;
    margin-bottom: 18px;
}

.wt-card h4 {
    margin: 0;
    color: var(--ps-text);
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: 0;
}

.wt-sub {
    margin: 10px 0 0;
    color: var(--ps-muted);
    font-size: .92rem;
}

.wt-divider {
    width: 42px;
    height: 3px;
    margin: 16px 0 0;
    border-radius: 999px;
    background: var(--ps-accent);
}

.wt-form {
    margin-top: 28px;
}

.wt-input {
    margin-bottom: 18px;
}

.wt-input label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: .82rem;
    font-weight: 750;
}

.wt-field {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: var(--ps-radius-md);
    background: #ffffff;
    color: var(--ps-text);
    font: inherit;
    font-weight: 600;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.wt-field::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.wt-field:focus {
    border-color: var(--ps-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
}

.wt-form .phone-input {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 8px;
}

.wt-form .phone-country-picker {
    min-height: 48px;
}

.wt-form .phone-country-button,
.wt-form .phone-number {
    height: 48px;
    border-color: #dbe3ef;
    border-radius: var(--ps-radius-md);
    background: #ffffff;
    color: var(--ps-text);
    font: inherit;
    font-weight: 600;
}

.wt-form .phone-country-button {
    padding: 0 10px;
}

.wt-form .phone-number {
    padding: 0 14px;
    box-shadow: none;
}

.wt-form .phone-number::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.wt-form .phone-country-button:focus,
.wt-form .phone-number:focus {
    border-color: var(--ps-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
    outline: none;
}

input.wt-field:-webkit-autofill,
input.wt-field:-webkit-autofill:hover,
input.wt-field:-webkit-autofill:focus,
input.wt-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--ps-text);
    transition: background-color 5000s ease-in-out 0s;
}

.wt-form .wt-field.modified:not([type=checkbox]) {
    outline: 0;
}

.wt-form .wt-field.invalid,
.wt-form .wt-field.modified.invalid,
.wt-form .wt-field.input-validation-error {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, .10) !important;
    outline: 0 !important;
}

.wt-form .wt-field.invalid:focus,
.wt-form .wt-field.modified.invalid:focus,
.wt-form .wt-field.input-validation-error:focus {
    border-color: #f43f5e !important;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, .10) !important;
    outline: 0 !important;
}

.wt-btn {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: var(--ps-radius-md);
    background: var(--ps-primary);
    color: #ffffff;
    font: inherit;
    font-size: .9rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: var(--ps-shadow-sm);
    transition: background-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.wt-btn:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, .16);
}

.wt-btn:active {
    box-shadow: var(--ps-shadow-sm);
}

.wt-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--ps-muted);
    font-size: .86rem;
}

.wt-footer a {
    color: var(--ps-accent);
    font-weight: 800;
    text-decoration: none;
}

.auth-link {
    color: var(--ps-accent);
    display: inline-block;
    font-size: .84rem;
    font-weight: 800;
    margin-top: -4px;
    text-decoration: none;
}

.auth-link:hover,
.wt-footer a:hover {
    text-decoration: underline;
}

.wt-security {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ps-border-soft);
    text-align: center;
    color: #94a3b8;
    font-size: .76rem;
}

.alert-danger {
    border: 1px solid #fecdd3;
    border-radius: var(--ps-radius-md);
    background: #fff1f2;
    color: #be123c;
    font-size: .86rem;
}

@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .wt-left {
        display: none;
    }

    .wt-right {
        min-height: 100vh;
        padding: 28px 18px;
    }

    .wt-card {
        padding: 26px;
    }

    .auth-card-logo {
        display: block;
    }
}
