﻿/* ═══════════════════════════════════════════════════════════════════════════
   CARD IN CLOUD - Register Page
   Professional Authentication Design
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand Colors - Synced with light.css */
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #7C3AED;
    --accent: #06B6D4;
    --deep: #1E1B4B;
    
    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #06B6D4 100%);
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    
    /* UI Colors */
    --surface: #ffffff;
    --input-bg: #F8FAFC;
    --text-main: #111827;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* Focus */
    --focus-outline: rgba(79, 70, 229, 0.4);
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--surface);
    overflow-x: hidden;
}

.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEFT SIDE: FORM
   ═══════════════════════════════════════════════════════════════════════════ */
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    background: var(--surface);
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* Brand Logo */
.form-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary);
}

.form-brand-logo i {
    font-size: 2rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-brand-logo span {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.header-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.header-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Modern Inputs */
.form-floating > .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 3.5rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-floating > .form-control:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-outline);
}

.form-floating > label {
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Register Button */
.btn-register {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
    color: white;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   RIGHT SIDE: VISUAL
   ═══════════════════════════════════════════════════════════════════════════ */
.visual-panel {
    flex: 1.5;
    background: var(--brand-gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Hexagon Pattern Overlay */
.visual-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 42px 75px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.12'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    opacity: 0.5;
    pointer-events: none;
}

/* Logo in Visual Panel */
.visual-logo-image {
    position: absolute;
    top: 3rem;
    left: 3rem;
    z-index: 20;
}

.visual-logo-image img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Floating Card Animation */
.ecard-mockup {
    width: 340px;
    height: 210px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: rotate(-10deg);
    animation: floatCard 6s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.ecard-chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #f0f0f0, #c0c0c0);
    border-radius: 6px;
    margin-bottom: 24px;
}

.ecard-text-line {
    height: 10px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    margin-bottom: 10px;
    width: 75%;
}

.visual-content-bottom {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: white;
    z-index: 10;
    max-width: 450px;
}

.visual-content-bottom h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.visual-content-bottom p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

@keyframes floatCard {
    0%, 100% {
        transform: rotate(-10deg) translateY(0);
    }
    50% {
        transform: rotate(-10deg) translateY(-20px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SOCIAL LOGIN & DIVIDER
   ═══════════════════════════════════════════════════════════════════════════ */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.75rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

.social-button {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.social-button:hover {
    background-color: var(--input-bg);
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .visual-panel {
        display: none;
    }

    .form-panel {
        max-width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .form-panel {
        padding: 1.5rem;
    }
    
    .header-text h2 {
        font-size: 1.5rem;
    }
    
    .form-brand-logo span {
        font-size: 1.375rem;
    }
}
