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

@import url('../theme-tokens.css');

.auth-logo-sm {
    max-height: 36px;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: inline-block;
}

.theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.theme-switcher:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-switcher .dark-icon {
    display: none;
}

[data-theme="light"] .theme-switcher .light-icon {
    display: none;
}

.auth-link-primary {
    color: var(--primary-dark);
}

.auth-link-primary:hover {
    color: var(--primary);
}

.auth-home-btn {
    border-color: var(--border-color);
    color: var(--text-main);
}

.auth-home-btn:hover {
    color: var(--text-main);
    background: var(--input-bg);
}

.auth-hero-icon-success {
    font-size: 5rem;
    color: var(--success-color);
}

.auth-hero-icon-danger {
    font-size: 5rem;
    color: var(--danger-color);
}

.auth-hero-icon-md {
    font-size: 4rem;
}

.auth-inline-form {
    display: inline-block;
}

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

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
}

.ecard-text-line-short {
    width: 50%;
}

.ecard-wifi-icon {
    bottom: 25px;
    right: 25px;
    opacity: 0.8;
    font-size: 1.5rem;
    transform: rotate(90deg);
}

.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;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-floating {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    opacity: 0;
}

.form-floating:nth-child(1) { animation-delay: 0.1s; }
.form-floating:nth-child(2) { animation-delay: 0.15s; }
.form-floating:nth-child(3) { animation-delay: 0.2s; }
.form-floating:nth-child(4) { animation-delay: 0.25s; }
.form-floating:nth-child(5) { animation-delay: 0.3s; }

/* 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: var(--text-light);
    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(var(--primary-rgb), 0.35);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
    opacity: 0;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.45);
    color: var(--text-light);
}

.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.23'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    opacity: 0.5;
    pointer-events: none;
}

/* Logo in Visual Panel */
/*.gold-accent {
    position: absolute;
    left: 6.2rem;
    top: 2rem;
    width: 230px;
    height: 180px;
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0.08) 0%, transparent 80%);
    clip-path: polygon(35% 0%, 50% 0%, 100% 100%, 0% 100%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}*/

.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: 320px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: rotate(-10deg);
    animation: floatCard 8s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

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

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

.visual-content-bottom {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: var(--text-light);
    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: var(--border-color);
    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;
    }

    body, html {
        background: var(--surface);
    }

    .split-layout {
        align-items: flex-end;
    }

    .form-panel {
        max-width: 100%;
        padding: 2rem;
        background: var(--surface);
    }
}

@media (max-width: 576px) {
    .form-panel {
        padding: var(--space-xl) var(--space-md);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: var(--space-xl);
        background: var(--surface);
        border-radius: 24px 24px 0 0; /* Bottom sheet curve */
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        position: relative;
        animation: slideUpSheet 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        width: 100%;
    }

    /* Swipe Indicator */
    .form-panel::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: var(--gray-300);
        border-radius: 10px;
    }

    @keyframes slideUpSheet {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .form-brand-logo {
        justify-content: center;
        margin-bottom: var(--space-xl);
    }

    .header-text h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .header-text p {
        text-align: center;
        margin-bottom: var(--space-xl);
    }

    .form-brand-logo span {
        font-size: 1.375rem;
    }
}



