﻿
:root {
    --primary: #ff6b35;
    --primary-d: #e8521c;
    --primary-l: #fff0ea;
    --accent: #ffd166;
    --dark: #1e1e2e;
    --text: #2d2d3a;
    --muted: #8a8a9a;
    --border: #e8e8f0;
    --surface: #ffffff;
    --bg: #f7f7fb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: stretch;
}

.page-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.left-panel {
    flex: 1;
    background: linear-gradient(150deg, #ff6b35 0%, #ff9a5c 40%, #ffd166 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

    .left-panel::before {
        content: '';
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        top: -100px;
        left: -120px;
    }

    .left-panel::after {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        bottom: -80px;
        right: -80px;
    }

.left-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.left-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

    .left-logo i {
        font-size: 36px;
        color: #fff;
    }

.left-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.left-inner p {
    font-size: 1rem;
    opacity: 0.88;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto 36px;
}

.step-list {
    list-style: none;
    text-align: left;
    display: inline-block;
}

    .step-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 0.92rem;
        font-weight: 600;
        margin-bottom: 18px;
        opacity: 0.92;
    }

.step-num {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    width: 520px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.06);
    overflow-y: auto;
}

.form-box {
    width: 100%;
    max-width: 400px;
}

    .form-box h2 {
        font-size: 1.55rem;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 4px;
    }

    .form-box .sub {
        color: var(--muted);
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

/* ALERTS */
.alert-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    color: #92400e;
    padding: 11px 14px;
    font-size: 0.82rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert-fail {
    background: #fff5f5;
    border: 1px solid #fecdd3;
    border-left: 4px solid #f43f5e;
    border-radius: 10px;
    color: #be123c;
    padding: 12px 14px;
    font-size: 0.875rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* FORM GRID – 2 cột cho một số field */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.field-wrap {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
    z-index: 2;
    pointer-events: none;
}

/* Override Html helpers */
.field,
.field-wrap input[type="text"],
.field-wrap input[type="email"],
.field-wrap input[type="password"],
.field-wrap input[type="tel"] {
    width: 100%;
    padding: 11px 13px 11px 38px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.92rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

    .field::placeholder,
    .field-wrap input::placeholder {
        color: #c0c0d0;
    }

    .field:focus,
    .field-wrap input:focus {
        background: #fff;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
    }

.input-validation-error {
    border-color: #f43f5e !important;
    background: #fff5f5 !important;
}

.field-error {
    color: #be123c;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.88rem;
    z-index: 2;
    transition: color 0.2s;
}

    .toggle-pw:hover {
        color: var(--primary);
    }

.hint {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Strength bar */
.strength-wrap {
    margin-bottom: 14px;
}

.strength-track {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.strength-label {
    font-size: 0.74rem;
    font-weight: 700;
    margin-top: 3px;
}

/* Match msg */
.match-msg {
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 4px;
    min-height: 16px;
}

.btn-register {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-d));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(255,107,53,0.35);
    margin-top: 6px;
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(255,107,53,0.45);
    }

    .btn-register:active {
        transform: translateY(0);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

    .divider hr {
        flex: 1;
        border: none;
        border-top: 1.5px solid var(--border);
    }

    .divider span {
        font-size: 0.8rem;
        color: var(--muted);
        font-weight: 600;
        white-space: nowrap;
    }

.btn-login-link {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-l);
    border: 1.5px solid #ffd0bc;
    border-radius: 10px;
    color: var(--primary);
    font-size: 0.93rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

    .btn-login-link:hover {
        background: #ffe4d6;
        color: var(--primary-d);
        border-color: var(--primary);
    }

.home-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

    .home-link:hover {
        color: var(--primary);
    }

@media (max-width: 768px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        padding: 32px 20px;
        box-shadow: none;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

