/* ============================================
   AUTHENTICATION CSS - Floworaa Brand Design System
   ============================================ */

/* Import Landing Page Variables */
@import url('../../assets/css/variables.css');

/* ============================================
   GLOBAL STYLES - Floworaa Brand
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background: var(--bg-gradient-hero);
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   AUTHENTICATION CONTAINER
   ============================================ */

.auth-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient-hero);
    padding: 0;
}

/* ============================================
   BACKGROUND SHAPES - Floworaa Gradient Blobs
   ============================================ */

.auth-bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.auth-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(255, 15, 123, 0.15), rgba(255, 42, 133, 0.1));
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(139, 44, 245, 0.15), rgba(99, 102, 241, 0.1));
    bottom: -250px;
    left: -250px;
    animation-delay: 5s;
}

.auth-shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(99, 102, 241, 0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

/* ============================================
   HERO SECTION - Floworaa Style
   ============================================ */

.auth-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 100px 0 50px;
}

.auth-hero .container {
    position: relative;
    z-index: 2;
}

/* ============================================
   AUTH LAYOUT - Split Screen
   ============================================ */


.auth-visual {
    flex: 1;
    position: relative;
}

.auth-form-section {
    position: relative;
    z-index: 3;
}

/* ============================================
   AUTH CARD - Glassmorphism
   ============================================ */

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 1px solid var(--border-light);
    animation: cardEntrance 0.6s ease-out;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   LOGO & BRANDING - Floworaa Style
   ============================================ */

.auth-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-logo svg {
    width: 40px;
    height: 40px;
}

.auth-brand {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ============================================
   AUTH HEADER
   ============================================ */

.auth-header {
    margin-bottom: 2rem;
}

.auth-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 25px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */

.social-login {
    margin-bottom: 2rem;
}

.btn-google {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background: var(--bg-light);
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    padding: 0 1rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    background: var(--card-bg);
    position: relative;
    z-index: 1;
}

/* ============================================
   AUTH FORMS - Floworaa Style
   ============================================ */

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-right: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transition: all var(--transition-fast);
}

.form-control:focus {
    background: var(--card-bg);
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 15, 123, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.toggle-password {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-left: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transition: all var(--transition-fast);
}

.toggle-password:hover {
    background: var(--bg-gray);
    color: var(--primary-pink);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    accent-color: var(--primary-pink);
}

.form-check-input:checked {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.form-check-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

/* ============================================
   AUTH LINKS - Floworaa Style
   ============================================ */

.auth-link {
    color: var(--primary-pink);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.auth-back-link:hover {
    color: var(--primary-pink);
    transform: translateX(-4px);
}

/* ============================================
   BUTTONS - Floworaa Brand
   ============================================ */

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px 0 rgba(255, 15, 123, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(255, 15, 123, 0.35);
    color: var(--text-white);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
}

/* ============================================
   ALERTS - Floworaa Status Colors
   ============================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: var(--danger-subtle);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-success {
    background: var(--success-subtle);
    border-color: var(--success);
    color: var(--success);
}

.alert i {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

/* ============================================
   AUTH FOOTER
   ============================================ */

.auth-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: 1.5rem;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.strength-fill.weak {
    width: 33%;
    background: var(--danger);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ============================================
   CHECKBOX CUSTOM STYLES
   ============================================ */

.form-check-input[type="checkbox"] {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-medium);
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.form-check-input[type="checkbox"]:checked {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}

/* ============================================
   ANIMATIONS - Floworaa Style
   ============================================ */

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

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   AUTH ILLUSTRATION
   ============================================ */

.auth-illustration {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Main Dashboard Card */
.dashboard-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.dashboard-card .card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.card-dots span:nth-child(1) { background: #EF4444; }
.card-dots span:nth-child(2) { background: #F59E0B; }
.card-dots span:nth-child(3) { background: #22C55E; }

.card-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.chart-placeholder {
    width: 100%;
    height: 80px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

/* Platform Cards */
.platform-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.platform-card svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.facebook-card {
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0s;
}

.instagram-card {
    top: 10%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.linkedin-card {
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.twitter-card {
    bottom: 15%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

.tiktok-card {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite;
    animation-delay: 4s;
}

/* AI Card - Floworaa Gradient */
.ai-card {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gradient-secondary);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139, 44, 245, 0.2);
    border: 1px solid rgba(139, 44, 245, 0.3);
    animation: float 6s ease-in-out infinite;
    animation-delay: 5s;
}

.ai-icon {
    font-size: var(--font-size-2xl);
}

.ai-text {
    display: flex;
    flex-direction: column;
}

.ai-text strong {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-white);
}

.ai-text span {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-line {
    stroke-dasharray: 5, 5;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.moving-dot {
    animation: moveDot 3s ease-in-out infinite;
}

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

/* ============================================
   FLOATING SOCIAL ICONS - Floworaa Style
   ============================================ */

.floating-social-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-icon.facebook {
    background: var(--facebook);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon.twitter {
    background: #000;
    top: 25%;
    right: 10%;
    animation-delay: 1s;
}

.floating-icon.linkedin {
    background: var(--linkedin);
    bottom: 25%;
    left: 8%;
    animation-delay: 2s;
}

.floating-icon.instagram {
    background: var(--instagram);
    bottom: 15%;
    right: 12%;
    animation-delay: 3s;
}

/* ============================================
   VERIFICATION CODE INPUT
   ============================================ */

.verification-code-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.verification-code-inputs input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.verification-code-inputs input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 15, 123, 0.1);
    outline: none;
}

/* ============================================
   SUCCESS ANIMATION
   ============================================ */

.success-animation {
    text-align: center;
    padding: 3rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--success-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.success-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-message {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   TIMER
   ============================================ */

.timer {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.timer-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.timer-countdown {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-pink);
}

/* ============================================
   AI ILLUSTRATION - Floworaa Style
   ============================================ */

.ai-illustration {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.ai-illustration svg {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.ai-illustration p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}