/* ── auth.css ── Standalone login/signup page styles ── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: linear-gradient(135deg, #2a2a2a 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 16px;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ── Header ── */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-mascot {
    display: block;
    height: 120px;
    width: auto;
    margin: 0 auto 16px;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Inputs ── */
.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

.neu-input {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s;
}

.neu-input:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
}

.neu-input input {
    width: 100%;
    padding: 20px 16px 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.neu-input label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    pointer-events: none;
    transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.neu-input input:focus + label,
.neu-input input:not(:placeholder-shown) + label {
    top: 10px;
    transform: none;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Date input — label always raised */
.neu-input input[type="date"] {
    padding-top: 22px;
    color-scheme: dark;
}

.neu-input input[type="date"] + label {
    top: 10px;
    transform: none;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Button ── */
.neu-button {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.neu-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.neu-button:active {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* ── Toggle link ── */
.signup-link {
    text-align: center;
}

.signup-link p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.signup-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* ── Error ── */
.auth-error {
    background: rgba(226, 75, 74, 0.2);
    border: 1px solid rgba(226, 75, 74, 0.4);
    color: #f4a0a0;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.auth-success {
    background: rgba(29, 158, 117, 0.15);
    border: 1px solid rgba(29, 158, 117, 0.4);
    color: #1D9E75;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ── Form visibility ── */
#loginForm,
#signupForm,
#forgotForm,
#resetForm {
    display: none;
}

#loginForm.active,
#signupForm.active,
#forgotForm.active,
#resetForm.active {
    display: block;
}

/* Consent checkbox on the signup form */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 2px 18px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--color-text-secondary, #6b7280);
    cursor: pointer;
}
.consent-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--auth-accent, #1D9E75);
    cursor: pointer;
}
.consent-row a {
    color: var(--auth-accent, #1D9E75);
    text-decoration: none;
}
.consent-row a:hover {
    text-decoration: underline;
}
