/* Auth pages — login, register, reset, checkout-success */
body.auth-body { background-color: var(--navy); }
.auth-wrapper {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 100px 20px 60px; position: relative;
}
.auth-card { width: 100%; max-width: 420px; background: var(--white); position: relative; z-index: 1; }
.auth-header { background: var(--navy); padding: 32px 40px 28px; text-align: center; position: relative; overflow: hidden; }
.auth-header h1 { font-size: 18px; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0; }
.auth-logo { width: 48px; height: 48px; margin: 0 auto 12px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--grey); }
.auth-tab {
    flex: 1; padding: 14px; text-align: center;
    font-family: 'Public Sans', sans-serif; font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--slate); background: var(--off-white);
    border: none; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.auth-tab:hover { color: var(--navy); }
.auth-tab.active { color: var(--navy); background: var(--white); border-bottom: 2px solid var(--cyan); }
.auth-body { padding: 32px 40px 40px; }
.auth-form { display: none; }
.auth-form.active { display: block; }

.field-group { margin-bottom: 20px; }
.field-group label {
    display: block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--navy); margin-bottom: 6px;
}
.field-group input {
    width: 100%; padding: 12px 16px;
    font-family: 'Public Sans', sans-serif; font-size: 15px;
    border: 1px solid var(--grey); background: var(--off-white);
    color: var(--navy); outline: none; transition: border-color 0.2s;
}
.field-group input:focus { border-color: var(--cyan); }
.field-group input.error { border-color: #e74c3c; }
.field-hint { display: block; font-size: 12px; color: var(--slate); margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Password field with show/hide toggle */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: 44px;
    background: none;
    border: none;
    color: var(--slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: color 0.2s;
    padding: 0;
}
.password-toggle:hover { color: var(--navy); }
.password-toggle:focus { outline: none; color: var(--cyan); }

.auth-error, .auth-success {
    padding: 12px 16px; margin-bottom: 16px;
    font-size: 14px; display: none;
}
.auth-error { background: rgba(231, 76, 60, 0.08); border-left: 3px solid #e74c3c; color: #c0392b; }
.auth-success { background: rgba(0, 166, 214, 0.08); border-left: 3px solid var(--cyan); color: var(--navy); }
.auth-error.visible, .auth-success.visible { display: block; }

.auth-link { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-fineprint { font-size: 12px; color: var(--slate); margin-top: 16px; text-align: center; }
.auth-intro { font-size: 14px; color: var(--slate); margin-bottom: 16px; }
.auth-footer { text-align: center; padding: 24px; font-size: 12px; color: rgba(255,255,255,0.4); }
