/* Auth pages — modern calm theme */
* { box-sizing: border-box; }

html, body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, #0c1018 0%, #151d2b 45%, #1a2332 100%);
    position: relative;
}

body.auth-page::before,
body.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

body.auth-page::before {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -120px;
    animation: authFloat 18s ease-in-out infinite;
}

body.auth-page::after {
    width: 420px;
    height: 420px;
    bottom: -160px;
    right: -160px;
    animation: authFloat 22s ease-in-out infinite reverse;
}

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(24px); }
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

.auth-wrap.auth-wrap-wide {
    max-width: 600px;
}


.auth-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-bd);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65);
    animation: authIn .5s ease;
}

@keyframes authIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.auth-head {
    text-align: center;
    padding: 32px 28px 24px;
    background: linear-gradient(135deg, var(--px-cor-soft), var(--px-cor-soft-2));
    border-bottom: 1px solid var(--auth-bd);
    position: relative;
}

.auth-logo {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 14px;
    background: radial-gradient(120% 120% at 28% 18%, var(--px-cor-glow), var(--px-cor-soft-2));
    border: 1px solid var(--px-cor-border);
    margin-bottom: 14px;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
}

.auth-logo span { color: var(--auth-cor); }
.auth-logo-image { background: transparent; box-shadow: none; width: auto; height: auto; padding: 0; }
.auth-logo-img { max-height: 72px; max-width: 220px; object-fit: contain; display: block; }

.auth-head p {
    color: #e2e8f0;
    font-size: 14px;
    margin: 0 0 14px;
}

.auth-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    text-decoration: none;
    transition: .2s;
}

.auth-home:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.auth-body { padding: 28px 28px 32px; }

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
    border-bottom: 2px solid rgba(255, 255, 255, .08);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 6px;
    cursor: pointer;
    position: relative;
    transition: color .2s;
}

.auth-tab.on { color: #fff; }

.auth-tab.on::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: linear-gradient(90deg, var(--auth-cor), var(--auth-cor2));
    border-radius: 3px 3px 0 0;
}

.auth-hint {
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .25);
    color: #93c5fd;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.auth-field { margin-bottom: 18px; }

.auth-field label {
    display: block;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--auth-bd);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus-within {
    border-color: var(--px-cor-border);
    box-shadow: 0 0 0 3px var(--px-cor-soft);
}

.auth-input i {
    width: 44px;
    text-align: center;
    color: var(--auth-mut);
    flex-shrink: 0;
}

.auth-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 13px 14px 13px 0;
}

.auth-input input::placeholder { color: #8b9cb3; }

.auth-field small {
    display: block;
    margin-top: 6px;
    color: var(--auth-mut);
    font-size: 12px;
}

.auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-cor), var(--auth-cor2));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 34px -10px var(--px-cor-glow);
    transition: transform .15s;
    margin-top: 6px;
}

.auth-submit:hover { transform: translateY(-2px); }

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.auth-links a {
    color: var(--auth-cor);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover { text-decoration: underline; }

.auth-links span { color: #64748b; margin: 0 8px; }

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.auth-alert-error {
    background: rgba(239, 68, 68, .12);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(52, 211, 153, .12);
    border-left: 4px solid #34d399;
    color: #6ee7b7;
}

.auth-demo {
    margin-top: 18px;
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid var(--auth-bd);
}

.auth-demo a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d7dce4;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--auth-bd);
    transition: .2s;
}

.auth-demo a:hover {
    border-color: var(--auth-cor);
    color: #fff;
}

@media (max-width: 480px) {
    .auth-tab { font-size: 11px; padding: 10px 4px; }
    .auth-body { padding: 22px 18px 26px; }
}

.auth-body .form-group {
    margin-bottom: 18px;
}

.auth-body .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.auth-body .form-group label i {
    margin-right: 6px;
    color: var(--auth-cor);
}

.auth-body .form-group input,
.auth-body .form-group select,
.auth-body .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--auth-bd);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
}

.auth-body .form-group input:focus,
.auth-body .form-group select:focus,
.auth-body .form-group textarea:focus {
    outline: none;
    border-color: var(--px-cor-border);
    box-shadow: 0 0 0 3px var(--px-cor-soft);
}

.auth-body .form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--auth-mut);
}

.auth-body .auth-submit,
.auth-body .btn.btn-primary {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-cor), var(--auth-cor2));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-bd);
}

.auth-links-row a {
    color: var(--auth-mut);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-links-row a:hover {
    color: #fff;
}
