/* Professional Enterprise EdTech Signup - Enhanced with Animations & 3D */

#preact-border-shadow-host {
    display: none !important;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --accent: #059669;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border: #E5E7EB;
    --border-focus: #93C5FD;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-secondary);
}

/* ===== LAYOUT ===== */
.signup-container {
    display: flex;
    min-height: 100vh;
    perspective: 1000px;
}

/* ===== LEFT PANEL - BRANDING ===== */
.hero-panel {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #60A5FA 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Subtle pattern overlay */
.hero-panel::before {
    /*content: '';*/
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Primary floating orb - top right */
.hero-panel::after {
    /*content: '';*/
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    33% {
        transform: translate(-30px, 20px) scale(1.05);
        opacity: 1;
    }

    66% {
        transform: translate(20px, -10px) scale(0.95);
        opacity: 0.7;
    }
}

/* Second floating orb */
.hero-content::before {
    /*content: '';*/
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: floatOrb2 12s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.1);
    }
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    left: 25%;
    width: 4px;
    height: 4px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.particle:nth-child(3) {
    left: 45%;
    width: 8px;
    height: 8px;
    animation-delay: -10s;
    animation-duration: 28s;
}

.particle:nth-child(4) {
    left: 60%;
    width: 5px;
    height: 5px;
    animation-delay: -15s;
    animation-duration: 22s;
}

.particle:nth-child(5) {
    left: 75%;
    animation-delay: -7s;
    animation-duration: 18s;
}

.particle:nth-child(6) {
    left: 90%;
    width: 4px;
    height: 4px;
    animation-delay: -12s;
    animation-duration: 24s;
}

@keyframes particleFloat {
    0% {
        top: 100%;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        top: -10%;
        opacity: 0;
        transform: translateX(30px) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

/* 3D Logo with hover lift */
.hero-logo {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    transition: all var(--transition-normal);
    animation: logoEntry 0.8s var(--transition-bounce) both;
}

@keyframes logoEntry {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-logo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-logo ion-icon {
    font-size: 28px;
    color: #FFFFFF;
}

.hero-tagline {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    animation: slideUp 0.6s var(--transition-normal) 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    animation: slideUp 0.6s var(--transition-normal) 0.3s both;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 48px;
    animation: slideUp 0.6s var(--transition-normal) 0.4s both;
}

/* Stats with staggered animation */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
    animation: statPop 0.5s var(--transition-bounce) both;
}

.stat-item:nth-child(1) {
    animation-delay: 0.5s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.6s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes statPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    transition: transform var(--transition-fast);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Trust logos with line animation */
.trust-logos {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    animation: fadeIn 1s var(--transition-normal) 0.8s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.trust-logos span {
    white-space: nowrap;
}

.trust-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: lineExpand 1s var(--transition-normal) 1s forwards;
    transform: scaleX(0);
}

@keyframes lineExpand {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Hide elements we don't need */
.hero-illustration,
.feature-pills {
    display: none;
}

/* ===== RIGHT PANEL - FORM ===== */
.form-panel {
    flex: 1;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    position: relative;
    overflow-y: auto;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: formSlideIn 0.6s var(--transition-normal) both;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Seamless School Brand Header */
.brand-area-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
}

.brand-logo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.brand-logo-large img {
    width: 280px !important;
    height: auto !important;
    min-width: 280px;
    object-fit: contain;
}

.brand-text-large h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.brand-text-large span {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Input Row for prefix + input */
.input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-row .flex-grow {
    flex: 1;
}

/* Telecom Prefix Dropdown */
.prefix-select {
    flex-shrink: 0;
}

.prefix-dropdown {
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 90px;
}

.prefix-dropdown:hover {
    border-color: #D1D5DB;
}

.prefix-dropdown:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Inline Validation Errors */
.field-error {
    display: none;
    font-size: 13px;
    color: #DC2626;
    margin-top: 6px;
    padding-left: 2px;
    animation: errorShake 0.3s ease;
}

.field-error.text-center {
    text-align: center;
    padding-left: 0;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

.input-error {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Or Separator */
.or-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-tertiary);
    font-size: 13px;
}

.or-separator::before,
.or-separator::after {
    /*content: '';*/
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Toast Container - positioned outside form for fixed positioning */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

.toast-container>* {
    pointer-events: auto;
}

/* Alert styles - Floating Toast (Top Right - Outside Form) */
.alert {
    position: relative;
    max-width: 360px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 48px 18px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 12px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

.alert::before {
    /*content: '';*/
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    margin-top: 1px;
}

.alert strong {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

.alert .btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.4;
    padding: 4px;
    line-height: 1;
    color: inherit;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.alert .btn-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.alert .btn-close::before {
    /*content: '';*/
}

.alert-info {
    background: rgba(239, 246, 255, 0.95);
    color: #1E40AF;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.alert-info::before {
    /*content: '';*/
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.alert-success {
    background: rgba(240, 253, 244, 0.95);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-success::before {
    /*content: '';*/
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.alert-warning {
    background: rgba(255, 251, 235, 0.95);
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-warning::before {
    /*content: '';*/
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.alert-danger,
.alert-error {
    background: rgba(254, 242, 242, 0.95);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-danger::before,
.alert-error::before {
    /*content: '';*/
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-toggle ion-icon {
    font-size: 18px;
}

/* Password hint */
.password-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    padding-left: 2px;
}

/* Legacy brand-area for backwards compatibility */
.brand-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
}

.brand-area:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.brand-area:hover .brand-logo {
    transform: scale(1.05) rotateY(5deg);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-text span {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Welcome section */
.welcome-block {
    margin-bottom: 32px;
}

.welcome-block h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.welcome-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form elements with micro-interactions */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color var(--transition-fast);
}

.input-box {
    position: relative;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
    transform: translateZ(0);
}

    .form-control:hover {
        border-color: #D1D5DB;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-light), 0 4px 12px rgba(37, 99, 235, 0.1);
        transform: translateY(-1px);
    }

    .form-control::placeholder {
        color: var(--text-tertiary);
    }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-control:focus~.input-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Security strip with subtle glow */
.security-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.security-strip:hover {
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.05);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    transition: transform var(--transition-fast);
}

.security-badge:hover {
    transform: translateX(2px);
}

.security-badge ion-icon {
    font-size: 14px;
}

/* 3D Primary button with press effect */
.btn-primary {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Shimmer effect */
.btn-primary::before {
    /*content: '';*/
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #3B82F6 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary ion-icon {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.btn-primary:hover ion-icon {
    transform: translateX(3px);
}

/* Footer */
.form-footer {
    margin-top: 24px;
    text-align: center;
}

.form-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

.form-footer a::after {
    /*content: '';*/
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.form-footer a:hover::after {
    width: 100%;
}

/* 3D Testimonial card */
.testimonial-card {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
}

.testimonial-card::before {
    /*content: '';*/
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 48px;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.testimonial-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
    padding-left: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: transform var(--transition-bounce);
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1) rotate(-5deg);
}

.author-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-info span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Step transitions */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: stepFadeIn 0.4s var(--transition-normal) forwards;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Back button with hover effect */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
    padding: 4px 8px;
    margin-left: -8px;
    border-radius: var(--radius-sm);
}

.back-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.back-link ion-icon {
    font-size: 16px;
    transition: transform var(--transition-fast);
}

.back-link:hover ion-icon {
    transform: translateX(-3px);
}

/* OTP inputs with 3D effect */
.otp-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.otp-box {
    flex: 1;
    min-width: 0;
    max-width: 56px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
    transform: translateZ(0);
}

.otp-box:hover {
    border-color: #D1D5DB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.otp-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), 0 8px 16px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px) scale(1.02);
}

/* Staggered OTP animation */
.otp-box:nth-child(1) {
    animation: otpPop 0.3s var(--transition-bounce) 0.1s both;
}

.otp-box:nth-child(2) {
    animation: otpPop 0.3s var(--transition-bounce) 0.15s both;
}

.otp-box:nth-child(3) {
    animation: otpPop 0.3s var(--transition-bounce) 0.2s both;
}

.otp-box:nth-child(4) {
    animation: otpPop 0.3s var(--transition-bounce) 0.25s both;
}

.otp-box:nth-child(5) {
    animation: otpPop 0.3s var(--transition-bounce) 0.3s both;
}

.otp-box:nth-child(6) {
    animation: otpPop 0.3s var(--transition-bounce) 0.35s both;
}

@keyframes otpPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.timer {
    color: var(--text-tertiary);
}

.link-btn {
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.link-btn:hover {
    background: var(--primary-light);
    transform: translateX(2px);
}

/* 3D Role selection cards */
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
}

.role-card::before {
    /*content: '';*/
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.role-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-4px) rotateX(5deg);
    box-shadow: var(--shadow-md), 0 10px 20px rgba(37, 99, 235, 0.1);
}

.role-card:hover::before {
    opacity: 0.3;
}

.role-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.role-card.selected::before {
    opacity: 0.5;
}

.role-card ion-icon {
    font-size: 28px;
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.role-card:hover ion-icon {
    transform: scale(1.15);
    color: var(--primary);
}

.role-card.selected ion-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.role-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.role-card.selected span {
    color: var(--primary);
    font-weight: 600;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-panel {
        flex: 0 0 40%;
        padding: 60px 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .signup-container {
        flex-direction: column;
    }

    .hero-panel {
        flex: none;
        padding: 48px 24px;
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .trust-logos {
        display: none;
    }

    .form-panel {
        padding: 40px 24px;
    }

    .welcome-block h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-panel {
        padding: 32px 20px;
    }

    .hero-logo {
        width: 44px;
        height: 44px;
        margin-bottom: 32px;
    }

    .hero-tagline {
        font-size: 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        display: none;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .form-panel {
        padding: 32px 20px;
    }

    .brand-area {
        margin-bottom: 32px;
        padding: 12px;
    }

    .otp-box {
        height: 48px;
        font-size: 18px;
    }

    .role-grid {
        gap: 8px;
    }

    .role-card {
        padding: 16px 8px;
    }

    .role-card ion-icon {
        font-size: 24px;
    }

    .testimonial-card {
        display: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Form Group - Compact spacing */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Welcome Block - Compact */
.welcome-block {
    margin-bottom: 20px;
}

.welcome-block h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.welcome-block p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Role Grid - Compact */
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.role-card:hover {
    border-color: #D1D5DB;
    background: var(--bg-secondary);
}

.role-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.role-card ion-icon {
    font-size: 22px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.role-card.selected ion-icon {
    color: var(--primary);
}

.role-card span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.role-card.selected span {
    color: var(--primary);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    margin-bottom: 16px;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary);
}

.back-link ion-icon {
    font-size: 16px;
}