/* 
    Cou Thailand Luxury Registration Stylesheet
    Version: 1.4 (Terms & Conditions Optimized)
*/

:root {
    --primary: #66FFFF;
    --primary-hover: #00E5E5;
    --primary-glow: rgba(102, 255, 255, 0.3);
    --bg-dark: #020617;
    --card-bg: #111111;
    --glass-border: rgba(102, 255, 255, 0.15);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --error: #f43f5e;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* --- Background Animated Orbs --- */
.creative-universe {
    position: fixed; inset: 0; z-index: -1;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(120px);
    opacity: 0.2; animation: orbMove 25s infinite alternate ease-in-out;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -15%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: #3b82f6; bottom: -10%; right: -5%; animation-delay: -5s; }

@keyframes orbMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.15); }
}

/* --- Main Layout --- */
.register-wrapper { width: 100%; max-width: 1050px; perspective: 1000px; }
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    display: flex;
    min-height: 680px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6);
    animation: modalFadeUp 0.8s var(--transition);
}

@keyframes modalFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Luxury Side Info (Black Side) --- */
.luxury-side-info {
    width: 38%;
    background: linear-gradient(165deg, #1a1a1a 0%, #000000 100%);
    padding: 60px 45px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.03);
}

/* --- Enhanced Language Selector --- */
.lang-wrapper {
    position: absolute; top: 35px; right: 35px; z-index: 100;
}
.lang-dropdown { position: relative; }

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    backdrop-filter: blur(15px);
}

.lang-btn i:last-child { 
    font-size: 10px; 
    transition: transform 0.3s ease; 
    color: var(--text-dim);
}

.lang-btn:hover {
    background: rgba(102, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.lang-dropdown.active .lang-btn i:last-child { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    list-style: none;
    width: 140px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-menu li {
    padding: 10px 15px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-menu li:hover {
    background: rgba(102, 255, 255, 0.15);
    color: var(--primary);
}

.lang-menu li.active {
    color: var(--primary);
    font-weight: 700;
}

/* --- Content Styling --- */
.brand-logo { width: 55px; height: 55px; margin-bottom: 40px; }
.logo-inner {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: 16px; transform: rotate(45deg);
    box-shadow: 0 0 25px var(--primary-glow);
}

.badge-cyan { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px; opacity: 0.8; }
.side-title { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 25px; line-height: 1.15; }
.divider-cyan { width: 45px; height: 4px; background: var(--primary); border-radius: 2px; margin-bottom: 40px; }

.benefit-list { list-style: none; margin-bottom: auto; }
.benefit-list li { color: #94a3b8; font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.benefit-list li i { color: var(--primary); font-size: 18px; filter: drop-shadow(0 0 5px var(--primary-glow)); }

.copyright { font-size: 11px; color: #475569; margin-top: 30px; }

/* --- Right Side: White Panel --- */
.luxury-form-side { width: 62%; background: #FFFFFF; display: flex; flex-direction: column; }
.form-scroll-area { flex: 1; overflow-y: auto; padding: 60px 55px; }

/* Custom Scrollbar */
.form-scroll-area::-webkit-scrollbar { width: 5px; }
.form-scroll-area::-webkit-scrollbar-track { background: #f8fafc; }
.form-scroll-area::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
.form-scroll-area::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.section-head {
    font-size: 11px; font-weight: 800; color: #1e293b; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 35px; display: flex; align-items: center; gap: 15px;
}
.section-head::after { content: ""; height: 1px; flex-grow: 1; background: linear-gradient(90deg, #e2e8f0, transparent); }

/* --- Form Input Fields --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 35px; }
.full-width { grid-column: span 2; }
.input-box-luxury { position: relative; }
.input-box-luxury label { display: block; font-size: 11px; font-weight: 700; color: #94a3b8; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.input-box-luxury input {
    width: 100%; padding: 12px 0; border: none; border-bottom: 2px solid #f1f5f9;
    font-size: 15px; font-weight: 600; color: #0f172a; outline: none; background: transparent; transition: var(--transition);
}

.input-box-luxury input:focus { border-color: var(--primary); padding-left: 5px; }
.eye-btn { position: absolute; right: 0; bottom: 12px; background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 16px; transition: 0.3s; }
.eye-btn:hover { color: var(--primary); }

/* --- Terms & Conditions Section --- */
.terms-container {
    margin: 10px 0 1px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Hide original checkbox */
.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

/* Custom Checkmark Square */
.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Hover Effect */
.checkbox-wrapper:hover input ~ .checkmark {
    border-color: var(--primary);
    background-color: rgba(102, 255, 255, 0.05);
}

/* Checked State */
.checkbox-wrapper input:checked ~ .checkmark {
    background-color: #000;
    border-color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Draw the check icon */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--primary);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input:checked ~ .checkmark:after {
    display: block;
}

/* Text inside terms */
.terms-text {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

.terms-text a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: 0.3s;
}

.terms-text a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.terms-text a:hover {
    color: var(--primary-hover);
}

.terms-text a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Action Section --- */
.form-action-luxury { padding: 35px 55px; background: #fff; border-top: 1px solid #f1f5f9; }
.btn-gold-action {
    width: 100%; background: #000; color: #fff; border: none; padding: 20px; border-radius: 16px;
    font-weight: 800; font-size: 15px; letter-spacing: 1.5px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 15px;
}
.btn-gold-action:hover { background: #111; transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.social-item {
    background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 14px; padding: 14px; 
    text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 12px; transition: 0.3s ease;
}
.social-item span { color: #475569; font-size: 13px; font-weight: 700; }
.social-item i { font-size: 18px; color: #64748b; }
.social-item:hover { background: #000; border-color: #000; }
.social-item:hover span, .social-item:hover i { color: var(--primary); }

.error-message { color: var(--error); font-size: 11px; margin-top: 8px; font-weight: 600; display: none; }

/* ให้ Error Message ของ Terms ขยับมาให้ตรงกับข้อความ */
#termsError { margin-left: 34px; }

/* --- Mobile --- */
@media (max-width: 991px) {
    .login-card { flex-direction: column; border-radius: 24px; min-height: auto; }
    .luxury-side-info { width: 100%; padding: 50px 35px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .luxury-form-side { width: 100%; }
    .form-scroll-area { padding: 40px 30px; }
    .form-action-luxury { padding: 30px; }
    .form-grid { grid-template-columns: 1fr; gap: 20px; }
}