.auth-layout {
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(circle at 20% 16%, rgba(20, 184, 166, .16), transparent 34%),
        radial-gradient(circle at 85% 18%, rgba(37, 99, 235, .14), transparent 28%),
        linear-gradient(135deg, #0f1b2a 0%, #172236 48%, #101721 100%) !important;
    overflow: auto !important;
}

.auth-layout::before {
    display: none !important;
}

.auth-container {
    width: 100%;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(360px, 520px);
    gap: 28px;
    width: min(1040px, 100%);
    margin: auto;
    align-items: stretch;
}

.auth-brand-panel,
.auth-shell-card {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -28px -44px auto;
    width: 270px;
    height: 270px;
    background: rgba(20, 184, 166, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.auth-brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.auth-brand-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
}

.auth-brand-copy h2 {
    margin: 0;
    color: #fff;
    max-width: 340px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.04;
    font-weight: 800;
}

.auth-brand-copy p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .66);
    max-width: 360px;
    font-size: 14px;
}

.auth-brand-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
}

.auth-brand-list span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 620;
}

.auth-brand-list svg {
    width: 17px;
    height: 17px;
    color: #5eead4;
}

.auth-brand-mascot {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.auth-brand-mascot img {
    width: min(230px, 70%);
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25));
}

.auth-shell-card {
    padding: 32px;
    align-self: center;
}

.auth-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    text-align: left;
}

.auth-card-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    flex: 0 0 auto;
}

.auth-card-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.auth-card-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.auth-card-subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .56);
    font-size: 14px;
}

.auth-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 13px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 620;
    text-align: left;
}

.auth-message svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.auth-message-error {
    color: #fecaca;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(248, 113, 113, .30);
}

.auth-message-success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(74, 222, 128, .30);
}

.auth-form-clean {
    display: grid;
    gap: 14px;
}

.auth-field {
    text-align: left;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .05em;
    text-transform: uppercase;
}

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

.auth-input-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .38);
    pointer-events: none;
}

.auth-input,
.auth-select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

.auth-select option {
    color: #10202f;
    background: #fff;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, .32);
}

.auth-input:focus,
.auth-select:focus {
    border-color: rgba(94, 234, 212, .72);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
}

.auth-pin-input {
    text-align: center;
    padding-left: 42px;
    font-size: 20px;
    font-weight: 780;
    letter-spacing: 8px;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    box-shadow: 0 12px 26px rgba(15, 118, 110, .25);
    font-family: inherit;
    font-size: 14px;
    font-weight: 780;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 118, 110, .32);
    text-decoration: none;
}

.auth-btn-owner {
    background: linear-gradient(135deg, #c77a16, #994b1a);
    box-shadow: 0 12px 26px rgba(199, 122, 22, .24);
}

.auth-links-clean {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.auth-links-clean a,
.auth-link-clean {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .54);
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
}

.auth-links-clean a:hover,
.auth-link-clean:hover {
    color: rgba(255, 255, 255, .86);
}

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

.auth-module-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .055);
    text-decoration: none;
    text-align: left;
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.auth-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, .45);
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

.auth-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #5eead4;
    background: rgba(20, 184, 166, .13);
}

.auth-module-card:nth-child(2) .auth-module-icon {
    color: #93c5fd;
    background: rgba(37, 99, 235, .15);
}

.auth-module-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 780;
}

.auth-module-desc {
    flex: 1;
    margin: 8px 0 16px;
    color: rgba(255, 255, 255, .56);
    font-size: 13px;
}

.auth-module-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 760;
}

.auth-footer {
    padding: 16px 0 0 !important;
}

.auth-footer-text {
    color: rgba(255, 255, 255, .32) !important;
}

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

    .auth-brand-panel {
        min-height: auto;
        padding: 24px;
    }

    .auth-brand-mascot {
        display: none;
    }
}

@media (max-width: 560px) {
    .auth-layout {
        padding: 16px;
    }

    .auth-shell-card {
        padding: 24px 18px;
    }

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

    .auth-card-head {
        align-items: flex-start;
    }
}
