@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --pt-auth-teal: #0f766e;
    --pt-auth-teal-hover: #0d6560;
    --pt-auth-teal-rgb: 15, 118, 110;
    --pt-auth-bg: #e8f2f0;
    --pt-auth-white: #ffffff;
    --pt-auth-text: #1e293b;
    --pt-auth-muted: #64748b;
    --pt-auth-border: #e2e8f0;
    --pt-auth-green: #10b981;
    --pt-auth-red: #ef4444;
    --pt-auth-radius: 16px;
    --pt-auth-shadow: 0 18px 50px rgba(15, 45, 66, 0.12);
}

* {
    box-sizing: border-box;
}

body.pt-auth-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pt-auth-bg);
    color: var(--pt-auth-text);
    min-height: 100vh;
}

.pt-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.pt-auth-shell {
    width: 100%;
    max-width: 1040px;
    background: var(--pt-auth-white);
    border-radius: var(--pt-auth-radius);
    box-shadow: var(--pt-auth-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
}

.pt-auth-shell--wide {
    max-width: 1120px;
    grid-template-columns: 0.82fr 1.18fr;
}

.pt-auth-hero {
    background: linear-gradient(160deg, #0f766e 0%, #0b5f59 55%, #094f4a 100%);
    color: #fff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pt-auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.14), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08), transparent 35%);
    pointer-events: none;
}

.pt-auth-hero-content {
    position: relative;
    z-index: 1;
}

.pt-auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

.pt-auth-hero h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pt-auth-hero p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 320px;
}

.pt-auth-hero-image {
    width: 100%;
    max-width: 320px;
    display: block;
    border-radius: 12px;
}

.pt-auth-panel {
    padding: 36px 34px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pt-auth-panel--scroll {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.pt-auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    text-decoration: none;
}

.pt-auth-brand img {
    max-height: 42px;
    max-width: 200px;
    object-fit: contain;
}

.pt-auth-brand-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--pt-auth-teal);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pt-auth-heading {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pt-auth-text);
    text-align: center;
}

.pt-auth-subheading {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pt-auth-muted);
    text-align: center;
}

.pt-auth-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.pt-auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.pt-auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.pt-auth-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.pt-auth-alert--info {
    background: rgba(var(--pt-auth-teal-rgb), 0.08);
    border: 1px solid rgba(var(--pt-auth-teal-rgb), 0.18);
    color: #0f5c55;
}

.pt-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pt-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pt-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pt-auth-field--full {
    grid-column: 1 / -1;
}

.pt-auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-auth-text);
}

.pt-auth-label span {
    color: var(--pt-auth-red);
}

.pt-auth-input-wrap {
    position: relative;
}

.pt-auth-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pt-auth-muted);
    font-size: 14px;
    pointer-events: none;
}

.pt-auth-input,
.pt-auth-select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--pt-auth-border);
    border-radius: 10px;
    padding: 0 14px 0 42px;
    font-size: 14px;
    color: var(--pt-auth-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pt-auth-select {
    padding-left: 42px;
    appearance: none;
}

.pt-auth-input:focus,
.pt-auth-select:focus {
    outline: none;
    border-color: rgba(var(--pt-auth-teal-rgb), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--pt-auth-teal-rgb), 0.12);
}

.pt-auth-input--plain {
    padding-left: 14px;
}

.pt-auth-input--code {
    padding: 0 14px;
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 18px;
}

.pt-auth-input--code::placeholder {
    letter-spacing: 0.35em;
    font-weight: 600;
    color: #cbd5e1;
}

.pt-auth-error {
    font-size: 12px;
    color: var(--pt-auth-red);
}

.pt-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pt-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pt-auth-muted);
    cursor: pointer;
}

.pt-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--pt-auth-teal);
}

.pt-auth-link {
    color: var(--pt-auth-teal);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.pt-auth-link:hover {
    color: var(--pt-auth-teal-hover);
}

.pt-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pt-auth-btn--primary {
    background: var(--pt-auth-teal);
    color: #fff;
    box-shadow: 0 8px 20px rgba(var(--pt-auth-teal-rgb), 0.24);
}

.pt-auth-btn--primary:hover {
    background: var(--pt-auth-teal-hover);
}

.pt-auth-btn--secondary {
    background: #f8fafc;
    color: var(--pt-auth-text);
    border: 1px solid var(--pt-auth-border);
}

.pt-auth-btn--secondary:hover {
    background: #f1f5f9;
}

.pt-auth-btn--google {
    background: #fff;
    color: var(--pt-auth-text);
    border: 1px solid var(--pt-auth-border);
}

.pt-auth-btn--google:hover {
    background: #f8fafc;
}

.pt-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pt-auth-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.pt-auth-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--pt-auth-muted);
}

.pt-auth-foot a {
    color: var(--pt-auth-teal);
    font-weight: 700;
    text-decoration: none;
}

.pt-auth-copyright {
    margin-top: 18px;
    text-align: center;
    font-size: 11px;
    color: var(--pt-auth-muted);
}

.pt-auth-captcha-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 12px;
    background: rgba(var(--pt-auth-teal-rgb), 0.08);
    border: 1px dashed rgba(var(--pt-auth-teal-rgb), 0.28);
}

.pt-auth-captcha-display span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 48px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--pt-auth-border);
    color: var(--pt-auth-teal);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(var(--pt-auth-teal-rgb), 0.08);
}

.pt-auth-captcha-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--pt-auth-muted);
    text-align: center;
}

.pt-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pt-auth-translate-bar {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 30;
    width: min(220px, calc(100vw - 32px));
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 991px) {
    .pt-auth-shell,
    .pt-auth-shell--wide {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .pt-auth-hero {
        padding: 28px 24px;
        min-height: auto;
    }

    .pt-auth-hero h1 {
        font-size: 24px;
    }

    .pt-auth-hero-image {
        max-width: 220px;
        margin: 0 auto;
    }

    .pt-auth-panel,
    .pt-auth-panel--scroll {
        padding: 28px 22px 22px;
        max-height: none;
        overflow: visible;
    }

    .pt-auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .pt-auth-page {
        padding: 12px;
        align-items: flex-start;
    }

    .pt-auth-heading {
        font-size: 22px;
    }
}
