:root {
    --auth-primary: #02a6a6;
    --auth-primary-dark: #082442;
    --auth-primary-soft: #e9fffb;
    --auth-accent: #ffb020;
    --auth-coral: #ff6b3d;
    --auth-dark: #102234;
    --auth-muted: #6d7b88;
    --auth-border: #e4edf3;
    --auth-bg: #f6fafc;
}

* {
    box-sizing: border-box;
}

body.tampu-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(17,199,182,.14), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(255,176,32,.20), transparent 25%),
        linear-gradient(180deg,#fbfeff 0%,var(--auth-bg) 50%,#f9fcff 100%);
    color: var(--auth-dark);
}

.tampu-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.tampu-auth-hero {
    position: relative;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        linear-gradient(135deg,#07325c 0%,#0caaa6 58%,#ffc044 135%);
    color: #fff;
}

.tampu-auth-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    right: -120px;
    top: -120px;
}

.tampu-auth-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    left: -90px;
    bottom: -90px;
}

.tampu-auth-hero-content,
.tampu-auth-hero-footer {
    position: relative;
    z-index: 2;
}

.tampu-auth-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tampu-auth-logo-row img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.tampu-auth-brand-name {
    font-size: 25px;
    font-weight: 950;
    line-height: 1;
}

.tampu-auth-brand-slogan {
    margin-top: 6px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

.tampu-auth-title {
    font-size: clamp(34px, 5vw, 58px);
    line-height: .98;
    margin: 72px 0 18px;
    font-weight: 980;
    letter-spacing: -.04em;
}

.tampu-auth-title span {
    color: var(--auth-accent);
}

.tampu-auth-description {
    max-width: 580px;
    color: rgba(255,255,255,.84);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.tampu-auth-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
    max-width: 640px;
}

.tampu-auth-feature {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.tampu-auth-feature-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.13);
    margin-bottom: 10px;
}

.tampu-auth-feature-title {
    font-weight: 900;
    font-size: 14px;
}

.tampu-auth-feature-text {
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
}

.tampu-auth-coresoft {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    padding: 10px 14px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.tampu-auth-coresoft img {
    height: 32px;
    border-radius: 10px;
}

.tampu-auth-panel-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 38px 24px;
}

.tampu-auth-card {
    width: min(480px, 100%);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(15,23,42,.12);
    padding: 34px;
    position: relative;
}

.tampu-auth-card-logo {
    width: 88px;
    height: 88px;
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 28px;
    padding: 9px;
    box-shadow: 0 20px 55px rgba(15,23,42,.16);
}

.tampu-auth-card-header {
    text-align: center;
    padding-top: 34px;
    margin-bottom: 24px;
}

.tampu-auth-card-title {
    margin: 0;
    font-size: 27px;
    font-weight: 950;
    color: var(--auth-dark);
    letter-spacing: -.02em;
}

.tampu-auth-card-subtitle {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.tampu-auth-form-group {
    margin-bottom: 15px;
}

.tampu-auth-label {
    display: block;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 7px;
}

.tampu-auth-input {
    width: 100%;
    border: 1px solid var(--auth-border);
    background: #fff;
    border-radius: 15px;
    min-height: 44px;
    padding: 10px 13px;
    color: var(--auth-dark);
    font-size: 14px;
    outline: none;
    transition: .18s ease;
}

.tampu-auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(20,184,166,.13);
}

.tampu-auth-error {
    margin-top: 7px;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.5;
}

.tampu-auth-status {
    border-radius: 16px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tampu-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tampu-auth-btn {
    border: 0;
    border-radius: 16px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: .18s ease;
    text-decoration: none;
}

.tampu-auth-btn:hover {
    transform: translateY(-1px);
}

.tampu-auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-primary), #11c7b6);
    color: #fff;
    box-shadow: 0 16px 32px rgba(2,166,166,.24);
}

.tampu-auth-btn-light {
    background: #fff;
    color: var(--auth-dark);
    border: 1px solid var(--auth-border);
}

.tampu-auth-link {
    color: var(--auth-primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.tampu-auth-link:hover {
    text-decoration: underline;
}

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

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

.tampu-auth-demo-box {
    margin-top: 22px;
    background: linear-gradient(135deg, #f2fffd, #fff8ea);
    border: 1px solid var(--auth-border);
    border-radius: 20px;
    padding: 14px;
    font-size: 13px;
    color: #334155;
}

.tampu-auth-demo-box strong {
    color: var(--auth-dark);
}

.tampu-auth-bottom {
    text-align: center;
    margin-top: 20px;
    color: var(--auth-muted);
    font-size: 12px;
}

.tampu-auth-bottom img {
    height: 32px;
    margin-top: 10px;
}

@media (max-width: 980px) {
    .tampu-auth-page {
        grid-template-columns: 1fr;
    }

    .tampu-auth-hero {
        min-height: auto;
        padding: 30px 24px;
    }

    .tampu-auth-title {
        margin-top: 42px;
    }

    .tampu-auth-panel-wrap {
        min-height: auto;
        padding: 68px 18px 30px;
    }
}

@media (max-width: 620px) {
    .tampu-auth-features {
        grid-template-columns: 1fr;
    }

    .tampu-auth-card {
        padding: 28px 20px;
    }

    .tampu-auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tampu-auth-btn {
        width: 100%;
    }
}
