/* ================================================================
   GestPros — AUTH PREMIUM STYLESHEET
   Premium login / register experience
   ================================================================ */

/* ---- RESET & BASE ---- */
.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

/* ---- ANIMATED BRAND PANEL ---- */
.auth-brand-panel {
    background: linear-gradient(135deg, #0052CC 0%, #0066FF 40%, #3388FF 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    min-height: 100vh;
}

/* Animated gradient overlay */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        rgba(0,40,120,.6) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0,80,200,.3) 100%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}
@keyframes gradientShift {
    0% { opacity: 1; }
    50% { opacity: .5; }
    100% { opacity: 1; }
}

/* Floating geometric shapes */
.auth-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.auth-shape-1 {
    width: 500px; height: 500px;
    top: -15%; right: -10%;
    animation: floatShape 20s ease-in-out infinite;
}
.auth-shape-2 {
    width: 350px; height: 350px;
    bottom: -10%; left: -8%;
    animation: floatShape 16s ease-in-out infinite reverse;
}
.auth-shape-3 {
    width: 180px; height: 180px;
    top: 50%; left: 60%;
    background: rgba(255,255,255,.03);
    animation: floatShape 12s ease-in-out infinite 2s;
}
.auth-shape-4 {
    width: 100px; height: 100px;
    top: 20%; left: 30%;
    border-radius: 24px;
    transform: rotate(45deg);
    background: rgba(255,255,255,.05);
    animation: floatRotate 18s linear infinite;
}
.auth-shape-5 {
    width: 60px; height: 60px;
    bottom: 25%; right: 20%;
    border-radius: 16px;
    transform: rotate(30deg);
    background: rgba(255,255,255,.06);
    animation: floatRotate 14s linear infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-10px, 15px); }
    75% { transform: translate(20px, 10px); }
}
@keyframes floatRotate {
    0% { transform: rotate(0deg) translate(0, 0); }
    25% { transform: rotate(90deg) translate(10px, -15px); }
    50% { transform: rotate(180deg) translate(-5px, 10px); }
    75% { transform: rotate(270deg) translate(15px, 5px); }
    100% { transform: rotate(360deg) translate(0, 0); }
}

/* Grid pattern overlay */
.auth-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Brand content z-index */
.auth-brand-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* ---- LOGO ---- */
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 3rem;
}
.auth-logo-img {
    width: 48px; height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    padding: 4px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    transition: transform .3s ease;
    flex-shrink: 0;
}
.auth-logo:hover .auth-logo-img { transform: rotate(-8deg) scale(1.08); }
.auth-logo-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    transition: transform .3s ease;
}
.auth-logo:hover .auth-logo-icon { transform: rotate(-8deg) scale(1.05); }
.auth-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.3px;
}
.auth-logo-sub {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    letter-spacing: .5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---- BRAND HEADLINE ---- */
.auth-headline {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}
.auth-headline-accent {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    max-width: 420px;
}

/* ---- FEATURE CARDS (glassmorphism) ---- */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2.5rem;
}
.auth-feat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    transition: all .35s ease;
    cursor: default;
}
.auth-feat:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    transform: translateX(6px);
}
.auth-feat-icon {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}
.auth-feat-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.auth-feat-desc {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.4;
}

/* ---- ANIMATED STATS BAR ---- */
.auth-stats-bar {
    display: flex;
    gap: 12px;
    margin-top: 2.5rem;
}
.auth-stat {
    flex: 1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all .3s ease;
}
.auth-stat:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-3px);
}
.auth-stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1;
    margin-bottom: 4px;
}
.auth-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 500;
}

/* ---- BRAND FOOTER ---- */
.auth-brand-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 16px;
}
.auth-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    font-size: 11px;
    color: rgba(255,255,255,.6);
}
.auth-trust-badge i { color: rgba(16,185,129,.8); }

/* ---- FORM PANEL ---- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #fff;
    min-height: 100vh;
}
.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

/* ---- MOBILE LOGO ---- */
.auth-mobile-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-mobile-logo-real {
    width: 64px; height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 14px;
    filter: drop-shadow(0 4px 12px rgba(0,102,255,.2));
}
.auth-mobile-logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #0066FF, #0052CC);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0,102,255,.3);
}
.auth-mobile-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #0066FF;
    letter-spacing: -.5px;
}

/* ---- FORM HEADER ---- */
.auth-form-header {
    margin-bottom: 2rem;
}
/* Logo above form */
.auth-form-logo {
    margin-bottom: .5rem;
}
.auth-form-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity .2s;
}
.auth-form-logo a:hover { opacity: .8; }

.auth-form-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.5px;
    margin-bottom: 6px;
}
.auth-form-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
}

/* ---- FLASH MESSAGES (animated) ---- */
.auth-flash {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    animation: flashSlideIn .4s cubic-bezier(.4,0,.2,1);
}
.auth-flash i { font-size: 18px; flex-shrink: 0; }
.auth-flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.auth-flash-success i { color: #10b981; }
.auth-flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.auth-flash-error i { color: #ef4444; }
.auth-flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 16px;
    color: inherit;
    opacity: .5;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.auth-flash-close:hover { opacity: 1; }

@keyframes flashSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- FORM INPUTS (floating labels + effects) ---- */
.auth-field {
    position: relative;
    margin-bottom: 1.25rem;
}
.auth-field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}
.auth-field-label label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.auth-field-label a {
    font-size: 12px;
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.auth-field-label a:hover { color: #0052CC; }

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.auth-input-wrap:focus-within {
    background: #fff;
    border-color: #0066FF;
    box-shadow: 0 0 0 4px rgba(0,102,255,.08);
}
.auth-input-wrap.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.08);
}
.auth-input-wrap.is-valid {
    border-color: #10b981;
}
.auth-input-icon {
    padding: 0 0 0 16px;
    font-size: 16px;
    color: #94a3b8;
    transition: color .3s;
    flex-shrink: 0;
}
.auth-input-wrap:focus-within .auth-input-icon { color: #0066FF; }
.auth-input-wrap.has-error .auth-input-icon { color: #ef4444; }

.auth-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px 14px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    width: 100%;
}
.auth-input::placeholder { color: #cbd5e1; }

.auth-input-action {
    padding: 0 14px 0 0;
    background: none;
    border: none;
    font-size: 17px;
    color: #94a3b8;
    cursor: pointer;
    transition: color .2s;
    flex-shrink: 0;
}
.auth-input-action:hover { color: #64748b; }

/* Validation icon */
.auth-valid-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: all .3s;
}
.auth-valid-icon.show { opacity: 1; }
.auth-valid-icon.valid { color: #10b981; }
.auth-valid-icon.invalid { color: #ef4444; }

/* ---- PASSWORD STRENGTH ---- */
.pwd-strength {
    margin-top: 8px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .35s ease;
}
.pwd-strength.visible {
    opacity: 1;
    max-height: 40px;
}
.pwd-strength-bar {
    height: 3px;
    border-radius: 3px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 4px;
}
.pwd-strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease, background .4s ease;
    width: 0;
}
.pwd-strength-text {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

/* ---- REMEMBER ME ---- */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.auth-remember input[type="checkbox"] {
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 1.5px solid #cbd5e1;
    accent-color: #0066FF;
    cursor: pointer;
}
.auth-remember label {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

/* ---- SUBMIT BUTTON (premium) ---- */
.auth-btn-submit {
    position: relative;
    width: 100%;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 16px rgba(0,102,255,.3);
    letter-spacing: .2px;
}
.auth-btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,.15), transparent);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.auth-btn-submit:hover {
    box-shadow: 0 8px 28px rgba(0,102,255,.4);
    transform: translateY(-2px);
}
.auth-btn-submit:hover::before {
    transform: translateX(100%);
}
.auth-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,102,255,.3);
}
.auth-btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
}
.auth-btn-submit .spinner-border {
    width: 18px; height: 18px;
    border-width: 2px;
}

/* Ripple effect */
.auth-btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    transform: scale(0);
    animation: ripple .6s ease-out forwards;
    pointer-events: none;
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ---- DIVIDER ---- */
.auth-or-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 1.5rem 0;
}
.auth-or-divider::before,
.auth-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}
.auth-or-divider span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- REGISTER LINK ---- */
.auth-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all .3s ease;
}
.auth-btn-register:hover {
    background: #f8fafc;
    border-color: #0066FF;
    color: #0066FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* ---- FOOTER LINKS ---- */
.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 12px;
    color: #94a3b8;
}
.auth-footer-text a {
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* ---- STAGGERED ENTRANCE ANIMATIONS ---- */
.auth-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: authFadeUp .6s cubic-bezier(.4,0,.2,1) forwards;
}
.auth-anim-1 { animation-delay: .05s; }
.auth-anim-2 { animation-delay: .12s; }
.auth-anim-3 { animation-delay: .19s; }
.auth-anim-4 { animation-delay: .26s; }
.auth-anim-5 { animation-delay: .33s; }
.auth-anim-6 { animation-delay: .4s; }
.auth-anim-7 { animation-delay: .47s; }
.auth-anim-8 { animation-delay: .54s; }
.auth-anim-9 { animation-delay: .61s; }

@keyframes authFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Brand panel entrance */
.auth-brand-anim {
    opacity: 0;
    transform: translateX(-30px);
    animation: brandSlideIn .8s cubic-bezier(.4,0,.2,1) forwards;
}
.auth-brand-anim-1 { animation-delay: .1s; }
.auth-brand-anim-2 { animation-delay: .2s; }
.auth-brand-anim-3 { animation-delay: .3s; }
.auth-brand-anim-4 { animation-delay: .45s; }
.auth-brand-anim-5 { animation-delay: .6s; }

@keyframes brandSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* ---- AJAX INLINE ALERT ---- */
.auth-inline-error {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    animation: flashSlideIn .3s ease;
}
.auth-inline-error i { color: #ef4444; font-size: 16px; flex-shrink: 0; }

/* ---- SUCCESS OVERLAY ---- */
.auth-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
.auth-success-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.auth-success-check {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: successPop .5s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 12px 32px rgba(16,185,129,.3);
}
.auth-success-check i {
    font-size: 32px;
    color: #fff;
}
@keyframes successPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.auth-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.auth-success-desc {
    font-size: 14px;
    color: #64748b;
}

/* ---- PARTICLE CANVAS ---- */
#authParticles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
    .auth-brand-panel {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    .auth-form-panel {
        min-height: auto;
        padding: 2.5rem 1.5rem;
    }
    .auth-stats-bar { flex-wrap: wrap; }
    .auth-stat { min-width: calc(50% - 6px); }
}
@media (max-width: 575.98px) {
    .auth-form-panel { padding: 2rem 1rem; }
    .auth-form-title { font-size: 24px; }
    .auth-btn-submit { padding: 14px 20px; font-size: 14px; }
    .auth-stats-bar { gap: 8px; }
    .auth-stat { padding: 14px 10px; }
    .auth-stat-number { font-size: 22px; }
}

/* ================================================================
   REGISTER — STEP WIZARD
   ================================================================ */

/* Step indicator */
.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 16px 0;
}
.reg-step {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.reg-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all .3s ease;
    flex-shrink: 0;
}
.reg-step.active .reg-step-circle {
    background: linear-gradient(135deg, #0052CC, #0066FF);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,102,255,.35);
}
.reg-step.done .reg-step-circle {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16,185,129,.3);
}
.reg-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    transition: color .3s;
}
.reg-step.active .reg-step-label,
.reg-step.done .reg-step-label {
    color: #0f172a;
}
.reg-step-line {
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: #e2e8f0;
    margin: 0 12px;
    transition: background .3s;
}
.reg-step-line.active {
    background: linear-gradient(90deg, #0066FF, #3388FF);
}

/* Register panels */
.reg-panel {
    animation: authFadeUp .4s ease forwards;
}
.reg-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}
.reg-panel-title i {
    color: #0066FF;
    font-size: 18px;
}

/* Field hints (AJAX feedback) */
.reg-field-hint {
    font-size: 12px;
    margin-top: 4px;
    padding: 0 2px;
    min-height: 18px;
    transition: color .2s;
}
.reg-field-hint.success { color: #10b981; }
.reg-field-hint.error { color: #ef4444; }

/* Inline error banner */
.auth-inline-error {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 13px;
    color: #dc2626;
    line-height: 1.4;
}
.auth-inline-error i {
    flex-shrink: 0;
    font-size: 16px;
}
@keyframes flashSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Plan cards */
.reg-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reg-plan-card {
    position: relative;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all .25s ease;
    background: #fff;
    overflow: hidden;
}
.reg-plan-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}
.reg-plan-card.selected,
.reg-plan-card:has(input:checked) {
    border-color: #0066FF;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0,102,255,.1), 0 4px 16px rgba(0,102,255,.12);
}
.reg-plan-card.popular {
    border-color: #c4b5fd;
}
.reg-plan-card.popular.selected {
    border-color: #0066FF;
}
.reg-plan-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}
.reg-plan-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all .2s;
    position: relative;
    cursor: pointer;
}
.reg-plan-radio:checked {
    border-color: #0066FF;
    background: #0066FF;
    box-shadow: inset 0 0 0 3px #fff;
}
.reg-plan-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.reg-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.reg-plan-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 12px;
    margin-top: 2px;
}
.reg-plan-price {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.reg-plan-period {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}
.reg-plan-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.reg-plan-feat {
    font-size: 11px;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.reg-plan-feat i { color: #10b981; font-size: 13px; }

/* Back button style */
.auth-btn-register {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-btn-register:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Logo upload dropzone */
.reg-logo-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    background: #fafbfc;
    position: relative;
    overflow: hidden;
}
.reg-logo-upload:hover,
.reg-logo-upload.dragover {
    border-color: #0066FF;
    background: #f0f7ff;
}
.reg-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}
.reg-logo-placeholder i {
    font-size: 32px;
    color: #0066FF;
    opacity: .6;
}
.reg-logo-placeholder span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}
.reg-logo-placeholder small {
    font-size: 11px;
    color: #94a3b8;
}
.reg-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.reg-logo-preview img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
}
.reg-logo-remove {
    position: absolute;
    top: -6px;
    right: calc(50% - 46px);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s;
}
.reg-logo-remove:hover { transform: scale(1.15); }

/* Auth valid icon (shared login/register) */
.auth-valid-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity .2s, color .2s;
}
.auth-valid-icon.show { opacity: 1; }
.auth-valid-icon.valid { color: #10b981; }
.auth-valid-icon.invalid { color: #ef4444; }

/* Password strength meter */
.pwd-strength {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.pwd-strength.visible { display: flex; }
.pwd-strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.pwd-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width .3s, background .3s;
}
.pwd-strength-text {
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* Field validation states */
.auth-input-wrap.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,.1);
}
.auth-input-wrap.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* Register responsive */
@media (max-width: 575.98px) {
    .reg-steps { gap: 0; }
    .reg-step-label { display: none; }
    .reg-step-line { width: 28px; margin: 0 8px; }
    .reg-plan-card { padding: 14px; }
    .reg-plan-price { font-size: 18px; }
    .reg-plan-icon { width: 34px; height: 34px; font-size: 15px; }
    .reg-plan-meta { flex-direction: column; gap: 2px; }
    .reg-plan-features { gap: 4px; }
}
