/* OrbIT CardMan - Auth v2 Form Styles
   Form inputs, buttons, alerts, card footer for form-based v2 pages */

/* ============================
   CARD FLOAT ANIMATION
   ============================ */
.v2-card {
    animation: v2CardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both,
               v2CardFloat 6s ease-in-out 0.8s infinite;
}

@keyframes v2CardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* ============================
   FORM LAYOUT
   ============================ */
.v2-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v2-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-form .form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(var(--v2-accent-rgb), 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.v2-form .form-group input[type="email"],
.v2-form .form-group input[type="password"],
.v2-form .form-group input[type="text"] {
    padding: 12px 16px;
    background: var(--v2-input-bg);
    border: 1px solid rgba(var(--v2-accent-rgb), 0.15);
    border-radius: 10px;
    color: var(--v2-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.v2-form .form-group input:hover {
    border-color: rgba(var(--v2-accent-rgb), 0.3);
    background: var(--v2-input-hover);
}

.v2-form .form-group input:focus {
    outline: none;
    border-color: var(--v2-accent);
    background: var(--v2-input-focus);
    box-shadow: 0 0 0 3px rgba(var(--v2-accent-rgb), 0.1), 0 0 20px rgba(var(--v2-accent-rgb), 0.08);
}

.v2-form .form-group input::placeholder {
    color: rgba(var(--v2-accent-rgb), 0.25);
}

/* Password hint */
.v2-form .form-group .hint {
    font-size: 0.75rem;
    color: rgba(var(--v2-accent-rgb), 0.35);
    margin-top: -2px;
}

/* Description text above form */
.v2-form-description {
    color: rgba(var(--v2-accent-rgb), 0.75);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

/* ============================
   FORM OPTIONS ROW
   ============================ */
.v2-form .form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
    max-height: 36px;
    overflow: visible;
    position: relative;
    z-index: 2;
    font-size: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                margin 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-form-options-hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* V2 checkbox — card-native style, no auth.css inheritance */
.v2-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.v2-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.v2-check-box {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--v2-accent-rgb), 0.2);
    border-radius: 3px;
    background: var(--v2-checkbox-bg);
    position: relative;
    transition: all 0.2s ease;
}

.v2-check-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border-right: 1.5px solid var(--v2-accent);
    border-bottom: 1.5px solid var(--v2-accent);
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.v2-check .v2-check-label {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.6rem !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(var(--v2-accent-rgb), 0.3);
    transition: color 0.3s ease;
}

/* Hover */
.v2-check:hover .v2-check-box {
    border-color: rgba(var(--v2-accent-rgb), 0.4);
}

.v2-check:hover .v2-check-label {
    color: rgba(var(--v2-accent-rgb), 0.55);
}

/* Checked */
.v2-check input[type="checkbox"]:checked ~ .v2-check-box {
    border-color: rgba(var(--v2-accent-rgb), 0.5);
    background: rgba(var(--v2-accent-rgb), 0.15);
    box-shadow: none;
}

.v2-check input[type="checkbox"]:checked ~ .v2-check-box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
    border-right-color: var(--v2-accent);
    border-bottom-color: var(--v2-accent);
}

.v2-check input[type="checkbox"]:checked ~ .v2-check-label {
    color: rgba(var(--v2-accent-rgb), 0.55);
}

/* Focus */
.v2-check input[type="checkbox"]:focus-visible ~ .v2-check-box {
    box-shadow: 0 0 0 3px rgba(var(--v2-accent-rgb), 0.2);
}

.v2-form .form-options .link {
    color: rgba(var(--v2-accent-rgb), 0.5);
    font-size: 0.82rem;
}

.v2-form .form-options .link:hover {
    color: var(--v2-accent);
}

/* Focus-visible for all links inside card & branding */
.v2-wrapper a:focus-visible {
    outline: none;
    color: var(--v2-accent);
    text-shadow: 0 0 12px rgba(var(--v2-accent-rgb), 0.4);
}

/* ============================
   CONSENT CHECKBOX (Signup)
   Uses .v2-check base with overrides for multi-line consent text
   ============================ */
.v2-consent {
    align-items: flex-start;
    margin-top: -4px;
}

.v2-consent .v2-check-box {
    margin-top: 1px;
}

.v2-consent .v2-check-label {
    font-family: inherit !important;
    font-size: 0.7rem !important;
    line-height: 1.5;
    letter-spacing: 0.3px;
    white-space: normal;
}

.v2-consent a {
    color: var(--v2-accent);
    text-decoration: none;
}

.v2-consent a:hover {
    text-decoration: underline;
}

/* ============================
   BUTTONS
   ============================ */
.v2-form .btn-primary {
    background: linear-gradient(135deg, var(--v2-accent) 0%, var(--v2-accent-dark) 100%);
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(var(--v2-accent-rgb), 0.25);
    margin-top: 4px;
}

.v2-form .btn-primary:hover {
    box-shadow: 0 8px 32px rgba(var(--v2-accent-rgb), 0.4);
    transform: translateY(-2px);
}

/* Card-native submit button */
.v2-card-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 1.5px solid rgba(var(--v2-accent-rgb), 0.3);
    border-radius: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(var(--v2-accent-rgb), 0.6);
    cursor: pointer;
    transition: all 0.3s ease, max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease, margin 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    max-height: 50px;
}

.v2-card-btn-hidden {
    max-height: 0;
    padding: 0;
    margin-top: 0;
    border-color: transparent;
    opacity: 0;
    pointer-events: none;
}

.v2-card-btn:hover {
    color: var(--v2-accent);
    border-color: rgba(var(--v2-accent-rgb), 0.5);
    box-shadow: 0 0 20px rgba(var(--v2-accent-rgb), 0.1),
                inset 0 0 20px rgba(var(--v2-accent-rgb), 0.03);
    letter-spacing: 4px;
}

.v2-card-btn:focus-visible {
    outline: none;
    color: var(--v2-accent);
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 3px rgba(var(--v2-accent-rgb), 0.2),
                0 0 20px rgba(var(--v2-accent-rgb), 0.1);
}

.v2-card-btn:active {
    color: var(--v2-accent);
    border-color: rgba(var(--v2-accent-rgb), 0.6);
    box-shadow: 0 0 12px rgba(var(--v2-accent-rgb), 0.15),
                inset 0 0 30px rgba(var(--v2-accent-rgb), 0.05);
}

/* Loading state (after form submit) */
.v2-card-btn-loading {
    pointer-events: none;
    color: rgba(var(--v2-accent-rgb), 0.4);
    border-color: rgba(var(--v2-accent-rgb), 0.2);
    letter-spacing: 4px;
    animation: v2BtnPulse 1.5s ease-in-out infinite;
}

@keyframes v2BtnPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Dots scanning animation while form submits */
.v2-card-loading .v2-card-dots span {
    animation: v2DotsScan 1.2s ease-in-out infinite;
}

.v2-card-loading .v2-card-dots span:nth-child(1) { animation-delay: 0s; }
.v2-card-loading .v2-card-dots span:nth-child(2) { animation-delay: 0.15s; }
.v2-card-loading .v2-card-dots span:nth-child(3) { animation-delay: 0.3s; }
.v2-card-loading .v2-card-dots span:nth-child(4) { animation-delay: 0.45s; }

@keyframes v2DotsScan {
    0%, 100% { color: rgba(var(--v2-accent-rgb), 0.2); }
    50% { color: rgba(var(--v2-accent-rgb), 0.5); text-shadow: 0 0 6px rgba(var(--v2-accent-rgb), 0.3); }
}

/* Danger button (delete account) */
.v2-form .btn-danger,
.v2-btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 4px;
}

.v2-form .btn-danger:hover,
.v2-btn-danger:hover {
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.v2-form .btn-danger:disabled,
.v2-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================
   CARD FOOTER
   ============================ */
.v2-card-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: none;
    position: relative;
    z-index: 1;
    transition: margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-card-footer-compact {
    margin-top: 0;
    padding-top: 0;
}

.v2-card-footer-compact::before {
    display: none;
}

.v2-card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--v2-accent-rgb), 0.15) 30%,
        rgba(var(--v2-accent-rgb), 0.15) 70%,
        transparent);
}

.v2-card-footer p {
    color: rgba(var(--v2-accent-rgb), 0.4);
    font-size: 0.85rem;
}

.v2-card-footer p + p {
    margin-top: 8px;
}

.v2-card-footer a {
    color: var(--v2-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.v2-card-footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(var(--v2-accent-rgb), 0.3);
}

/* ============================
   ALERTS
   ============================ */
.v2-form .alert,
.v2-card .alert {
    --_alert-color: 239, 68, 68;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.78rem;
    padding: 12px 16px 12px 18px;
    border-radius: 0;
    border: 1px solid rgba(var(--_alert-color), 0.15);
    background:
        linear-gradient(135deg,
            rgba(var(--_alert-color), 0.06) 0%,
            rgba(var(--_alert-color), 0.02) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    letter-spacing: 0.5px;
    line-height: 1.45;
    overflow: hidden;
    animation: v2AlertIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow:
        0 0 25px rgba(var(--_alert-color), 0.05),
        inset 0 1px 0 rgba(var(--_alert-color), 0.06),
        inset 0 0 30px rgba(var(--_alert-color), 0.02);
}

/* Glowing left accent bar */
.v2-form .alert::before,
.v2-card .alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgb(var(--_alert-color));
    box-shadow:
        0 0 8px rgba(var(--_alert-color), 0.6),
        0 0 20px rgba(var(--_alert-color), 0.3);
    animation: v2AlertBarPulse 2.5s ease-in-out infinite;
}

/* Scanning light sweep */
.v2-form .alert::after,
.v2-card .alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--_alert-color), 0.03) 30%,
        rgba(var(--_alert-color), 0.07) 50%,
        rgba(var(--_alert-color), 0.03) 70%,
        transparent 100%
    );
    animation: v2AlertScan 4s ease-in-out 0.8s infinite;
    pointer-events: none;
}

/* Icon container with orbital ring */
.v2-form .alert .v2-alert-icon,
.v2-card .alert .v2-alert-icon {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.v2-form .alert .v2-alert-icon .alert-icon-ring,
.v2-card .alert .v2-alert-icon .alert-icon-ring {
    stroke-dasharray: 76;
    stroke-dashoffset: 76;
    animation: v2AlertIconDraw 0.7s ease-out 0.15s forwards;
}

.v2-form .alert .v2-alert-icon .alert-icon-glow,
.v2-card .alert .v2-alert-icon .alert-icon-glow {
    opacity: 0;
    animation: v2AlertIconGlow 2.5s ease-in-out 0.8s infinite;
}

.v2-form .alert .v2-alert-icon .alert-icon-symbol,
.v2-card .alert .v2-alert-icon .alert-icon-symbol {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: v2AlertIconDraw 0.4s ease-out 0.7s forwards;
}

.v2-form .alert .v2-alert-icon .alert-icon-dot,
.v2-card .alert .v2-alert-icon .alert-icon-dot {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: v2AlertDotPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
}

.v2-form .alert .v2-alert-icon .alert-icon-check,
.v2-card .alert .v2-alert-icon .alert-icon-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: v2AlertIconDraw 0.45s ease-out 0.7s forwards;
}

.v2-form .alert .v2-alert-icon .alert-icon-orb,
.v2-card .alert .v2-alert-icon .alert-icon-orb {
    opacity: 0;
    animation: v2AlertOrbAppear 0.4s ease-out 0.9s forwards;
}

/* Text */
.v2-form .alert .v2-alert-text,
.v2-card .alert .v2-alert-text {
    flex: 1;
    min-width: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    animation: v2AlertTextReveal 0.5s ease-out 0.3s both;
}

/* Edge trace — animated border highlight */
.v2-form .alert .v2-alert-edge,
.v2-card .alert .v2-alert-edge {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.v2-form .alert .v2-alert-edge::before,
.v2-card .alert .v2-alert-edge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -20%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--_alert-color), 0.8),
        transparent);
    animation: v2AlertEdgeTrace 3.5s ease-in-out 1s infinite;
}

.v2-form .alert .v2-alert-edge::after,
.v2-card .alert .v2-alert-edge::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -20%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--_alert-color), 0.5),
        transparent);
    animation: v2AlertEdgeTrace 3.5s ease-in-out 2.5s infinite reverse;
}

/* Error variant */
.v2-form .alert-error,
.v2-card .alert-error {
    --_alert-color: 239, 68, 68;
    color: #fca5a5;
}

/* Success variant */
.v2-form .alert-success,
.v2-card .alert-success {
    --_alert-color: var(--v2-accent-rgb);
    color: rgba(var(--v2-accent-rgb), 0.85);
}

/* ---- Alert keyframes ---- */

@keyframes v2AlertIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scaleY(0.92);
        clip-path: inset(0 100% 0 0);
    }
    40% {
        clip-path: inset(0 0 0 0);
        transform: translateY(-2px) scaleY(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes v2AlertBarPulse {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 8px rgba(var(--_alert-color), 0.4), 0 0 20px rgba(var(--_alert-color), 0.15); }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(var(--_alert-color), 0.7), 0 0 30px rgba(var(--_alert-color), 0.25); }
}

@keyframes v2AlertScan {
    0% { left: -60%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

@keyframes v2AlertIconDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes v2AlertIconGlow {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.4; }
}

@keyframes v2AlertDotPop {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes v2AlertOrbAppear {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 0.6; transform: scale(1); }
}

@keyframes v2AlertTextReveal {
    from { opacity: 0; transform: translateX(6px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes v2AlertEdgeTrace {
    0% { left: -30%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.v2-form .resend-form {
    text-align: center;
    margin-bottom: 0;
}

/* ============================
   CARD STATES
   ============================ */

/* Shake on error */
.v2-card-shake {
    animation: v2CardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both,
               v2Shake 0.5s ease-out 0.1s;
}

@keyframes v2Shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(7px); }
    45% { transform: translateX(-5px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
    90% { transform: translateX(1px); }
}

/* Success state (inline in login card) */
.v2-card-success {
    border-color: rgba(var(--v2-accent-rgb), 0.4) !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(var(--v2-accent-rgb), 0.12),
        0 0 0 1px rgba(var(--v2-accent-rgb), 0.1) !important;
    animation: v2CardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both,
               v2SuccessPulse 1.5s ease-out 0.3s !important;
}

@keyframes v2SuccessPulse {
    0% { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 50px rgba(var(--v2-accent-rgb), 0.2), 0 25px 60px rgba(0, 0, 0, 0.5); }
    100% { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--v2-accent-rgb), 0.12); }
}

.v2-card-success .v2-card-header .v2-brand {
    color: var(--v2-accent);
}

.v2-card-success .v2-card-dots span {
    color: rgba(var(--v2-accent-rgb), 0.15);
    animation: v2DotsLightUp 0.4s ease-out forwards;
}

.v2-card-success .v2-card-dots span:nth-child(1) { animation-delay: 0.2s; }
.v2-card-success .v2-card-dots span:nth-child(2) { animation-delay: 0.4s; }
.v2-card-success .v2-card-dots span:nth-child(3) { animation-delay: 0.6s; }
.v2-card-success .v2-card-dots span:nth-child(4) { animation-delay: 0.8s; }

@keyframes v2DotsLightUp {
    0% { color: rgba(var(--v2-accent-rgb), 0.15); }
    50% { color: rgba(var(--v2-accent-rgb), 0.6); text-shadow: 0 0 8px rgba(var(--v2-accent-rgb), 0.4); }
    100% { color: rgba(var(--v2-accent-rgb), 0.35); text-shadow: none; }
}

/* Inline success content (inside login/signup card) */
.v2-inline-success {
    text-align: center;
    padding: 32px 10px 20px;
    position: relative;
    z-index: 1;
}

.v2-inline-success .success-icon {
    color: var(--v2-accent);
    margin-bottom: 0;
}

.v2-inline-success h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--v2-accent);
    margin: 16px 0 8px;
}

.v2-inline-success p {
    color: rgba(var(--v2-accent-rgb), 0.5);
    font-size: 0.9rem;
}

/* ============================
   CARD-STYLE FIELDS (Login)
   ============================ */
.v2-card-field {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.v2-card-field-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(var(--v2-accent-rgb), 0.3);
    transition: color 0.3s ease;
}

/* Brighten label when its sibling input is focused */
.v2-card-field:focus-within .v2-card-field-label {
    color: rgba(var(--v2-accent-rgb), 0.55);
}

.v2-card-field input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(var(--v2-accent-rgb), 0.15);
    border-radius: 0;
    padding: 6px 0 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: rgba(var(--v2-accent-rgb), 0.7);
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.v2-card-field input::placeholder {
    font-family: 'Orbitron', sans-serif;
    color: rgba(var(--v2-accent-rgb), 0.18);
    letter-spacing: 1.5px;
    font-weight: 400;
}

.v2-card-field input:focus {
    border-bottom-color: rgba(var(--v2-accent-rgb), 0.4);
    color: rgba(var(--v2-accent-rgb), 0.85);
}

.v2-card-field input:hover:not(:focus) {
    border-bottom-color: rgba(var(--v2-accent-rgb), 0.25);
}

/* Password visibility toggle */
.v2-card-field-password {
    position: relative;
}

.v2-pwd-toggle {
    position: absolute;
    right: 0;
    bottom: 6px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(var(--v2-accent-rgb), 0.25);
    transition: color 0.2s ease;
    line-height: 0;
}

.v2-pwd-toggle:hover {
    color: rgba(var(--v2-accent-rgb), 0.6);
}

.v2-card-field-password input {
    padding-right: 30px;
}

/* Override browser autofill styling (white bg + black text) */
.v2-card-field input:-webkit-autofill,
.v2-card-field input:-webkit-autofill:hover,
.v2-card-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(var(--v2-accent-rgb), 0.7);
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 600000s 0s, color 600000s 0s;
}

/* Keep form-options on one line on mobile (overrides auth.css column stack) */
@media (max-width: 480px) {
    .v2-form .form-options {
        flex-direction: row;
        align-items: center;
        font-size: 0.75rem;
        gap: 8px;
    }

    .v2-form .form-options .checkbox-label {
        gap: 6px;
    }
}

/* ============================
   RESPONSIVE (Form-specific)
   ============================ */
@media (max-width: 380px) {
    .v2-card {
        padding: 24px 20px 20px;
    }

    .v2-card-header {
        margin-bottom: 8px;
    }

    .v2-card-dots {
        margin-bottom: 14px;
    }

    .v2-form {
        gap: 12px;
    }

    .v2-form .form-group input {
        padding: 10px 14px;
    }

    .v2-card-field input {
        font-size: 0.78rem;
        letter-spacing: 1px;
    }
}

/* ============================
   REDUCED MOTION (Form-specific)
   ============================ */
@media (prefers-reduced-motion: reduce) {
    .v2-card { animation: v2CardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
    .v2-card-shake { animation: v2CardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
    .v2-card-success { animation: v2CardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
    .v2-card-field input { transition: none; }
    .v2-form .alert, .v2-card .alert { animation: none; opacity: 1; transform: none; clip-path: none; }
    .v2-form .alert::before, .v2-card .alert::before { animation: none; }
    .v2-form .alert::after, .v2-card .alert::after { animation: none; }
    .v2-form .alert .v2-alert-text, .v2-card .alert .v2-alert-text { animation: none; }
    .v2-form .alert .v2-alert-edge::before,
    .v2-form .alert .v2-alert-edge::after,
    .v2-card .alert .v2-alert-edge::before,
    .v2-card .alert .v2-alert-edge::after { animation: none; }
    .v2-form .alert svg *, .v2-card .alert svg * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}
