/* ================================
   AUTH PAGES — REGISTER & LOGIN
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Hard reset all button styles inside auth card */
.scc-auth-card button,
.scc-auth-card input[type="submit"] {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
}

body:has(.scc-auth-wrap) {
    background:
        radial-gradient(ellipse at top left,  rgba(109,40,217,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(49,46,129,0.18) 0%, transparent 50%),
        #0a0d14 !important;
    min-height: 100vh;
}

.scc-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.scc-auth-card {
    background: #13151f;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* LOGO */
.scc-auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    text-decoration: none;
}

.scc-auth-logo-text {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* HEADINGS */
.scc-auth-card h1 {
    font-size: 22px;
    font-weight: 600;
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 8px;
}

.scc-auth-sub {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ERRORS */
.scc-auth-errors {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.scc-auth-errors p {
    font-size: 13px;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.scc-auth-errors p:last-child { margin-bottom: 0; }

/* FORM */
.scc-auth-form { display: flex; flex-direction: column; gap: 16px; }

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

.scc-field label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.scc-input-wrap > i {
    position: absolute;
    left: 14px;
    color: #475569;
    font-size: 13px;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
}

/* Hide icon when input has a value (icon is before input in DOM) */
.scc-input-wrap:has(input:not(:placeholder-shown)) > i:first-child {
    opacity: 0;
    transform: translateX(-4px);
}

.scc-input-wrap input {
    width: 100%;
    padding: 11px 44px 11px 40px;
    background: #0f1117;
    border: 1px solid #2d3348;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, padding-left 0.15s;
    font-family: inherit;
}

/* Shift text left when icon disappears */
.scc-input-wrap:has(input:not(:placeholder-shown)) input {
    padding-left: 14px;
}

/* Keep left padding when toggle-pw button exists (password fields) */
.scc-input-wrap:has(.scc-toggle-pw):has(input:not(:placeholder-shown)) input {
    padding-left: 14px;
    padding-right: 44px;
}

.scc-input-wrap input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.scc-input-wrap input::placeholder { color: #374151; }

.scc-auth-wrap .scc-toggle-pw,
button.scc-toggle-pw {
    position: absolute;
    right: 12px;
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    transition: color 0.2s;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
    min-height: unset !important;
    line-height: 1 !important;
}
.scc-auth-wrap .scc-toggle-pw:hover,
button.scc-toggle-pw:hover {
    color: #94a3b8 !important;
    background: transparent !important;
}

/* REMEMBER ROW */
.scc-remember-row {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
}

.scc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.scc-checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #7c3aed;
}

.scc-forgot {
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.2s;
}
.scc-forgot:hover { color: #a78bfa; }

/* SUBMIT BUTTON */
.scc-auth-wrap .scc-auth-btn,
button.scc-auth-btn {
    width: 100%;
    padding: 13px !important;
    background: #7c3aed !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    margin-top: 4px;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
}
.scc-auth-wrap .scc-auth-btn:hover,
button.scc-auth-btn:hover {
    background: #6d28d9 !important;
    transform: translateY(-1px);
    color: #fff !important;
}
.scc-auth-wrap .scc-auth-btn:active { transform: translateY(0); }

/* SWITCH LINK */
.scc-auth-switch {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 24px;
}

.scc-auth-switch a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.scc-auth-switch a:hover { color: #a78bfa; }

/* RESPONSIVE */
@media (max-width: 480px) {
    .scc-auth-card { padding: 28px 24px; }
}