

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --dark: #0b1735;
    --text: #111827;
    --gray: #64748b;

    --white: #ffffff;
    --border: #dbe5f1;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f6fd;
    color: var(--text);
}

a {
    text-decoration: none;
}


/* ==============================
   KHUNG TRANG ĐĂNG KÝ
   SỬ DỤNG FLEXBOX, KHÔNG DÙNG GRID
============================== */

.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;

    background:
        radial-gradient(
            circle at top left,
            #dbeafe 0,
            transparent 35%
        ),
        #f1f6fd;
}

.register-container {
    width: 100%;
    max-width: 1150px;

    display: flex;
    flex-direction: row;
    align-items: stretch;

    background: var(--white);
    border-radius: 22px;
    overflow: hidden;

    box-shadow: 0 20px 60px rgba(15, 40, 90, 0.12);
}


/* ==============================
   BÊN TRÁI: BANNER
============================== */

.register-banner {
    position: relative;

    width: 45%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 35px;

    color: var(--white);
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(5, 18, 48, 0.96),
            rgba(29, 78, 216, 0.78)
        ),
        url("images/login-banner.jpg");

    background-size: cover;
    background-position: center;
}

.register-banner::before {
    content: "";
    position: absolute;

    width: 350px;
    height: 350px;

    right: -120px;
    top: 120px;

    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);

    filter: blur(10px);
    pointer-events: none;
}

.register-banner::after {
    content: "";
    position: absolute;

    width: 250px;
    height: 250px;

    left: -120px;
    bottom: 20px;

    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);

    filter: blur(10px);
    pointer-events: none;
}


/* ==============================
   LOGO BÊN TRÁI
============================== */

.brand {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    width: fit-content;
    max-width: 100%;

    color: var(--white);
}

.brand-icon,
.form-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    padding: 0;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #60a5fa,
        #2563eb
    );

    color: white;
    font-size: 30px;
    font-weight: 900;
}

.brand-icon img,
.form-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    min-width: 0;
}

.brand-text h1 {
    font-size: 27px;
    letter-spacing: 2px;
}

.brand-text p {
    margin-top: 4px;
    color: #dbeafe;
    font-size: 12px;
}


/* ==============================
   LOGO TRÊN MÁY TÍNH
============================== */

@media (min-width: 901px) {
    .brand .brand-icon {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
    }

    .form-heading .form-logo {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
        margin: 0 auto 12px;
    }
}


/* ==============================
   NỘI DUNG BANNER
============================== */

.banner-content {
    position: relative;
    z-index: 1;

    margin: auto 0;
    padding: 35px 0;
}

.banner-label {
    display: inline-block;

    padding: 8px 13px;
    margin-bottom: 22px;

    border-radius: 30px;
    border: 1px solid rgba(147, 197, 253, 0.35);

    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;

    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.banner-content h2 {
    margin-bottom: 18px;

    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.25;
    font-weight: 900;
}

.banner-content > p {
    max-width: 400px;

    color: #dbeafe;
    line-height: 1.8;
    font-size: 14px;
}


/* ==============================
   DANH SÁCH LỢI ÍCH
============================== */

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 16px;

    margin-top: 25px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 13px;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 17px;
}

.banner-footer {
    position: relative;
    z-index: 1;

    color: #bfdbfe;
    font-size: 11px;
    letter-spacing: 2px;
}


/* ==============================
   BÊN PHẢI: FORM ĐĂNG KÝ
============================== */

.register-form-section {
    width: 55%;
    min-width: 0;

    padding: 30px 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.back-home {
    align-self: flex-end;

    margin-bottom: 20px;

    color: var(--gray);
    font-size: 12px;

    transition: color 0.2s;
}

.back-home:hover {
    color: var(--primary);
}


/* ==============================
   TIÊU ĐỀ FORM
============================== */

.form-heading {
    margin-bottom: 24px;
    text-align: center;
}

.form-logo {
    margin: 0 auto 12px;
}

.form-heading h2 {
    margin-bottom: 8px;

    color: var(--dark);
    font-size: 25px;
}

.form-heading p {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.6;
}


/* ==============================
   NHÓM INPUT
============================== */

.form-group {
    margin-bottom: 16px;
}

.form-group > label {
    display: block;

    margin-bottom: 8px;

    color: #27364b;
    font-size: 12px;
    font-weight: bold;
}


/* ==============================
   Ô NHẬP LIỆU
============================== */

.input-box {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 44px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #ffffff;

    transition: border-color 0.25s, box-shadow 0.25s;
}

.input-box:focus-within {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-icon {
    flex-shrink: 0;
    font-size: 15px;
}

.input-box input {
    width: 100%;
    min-width: 0;

    padding: 12px 0;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);
    font-family: inherit;
    font-size: 12px;
}

.input-box input::placeholder {
    color: #94a3b8;
}

.input-hint {
    display: block;

    margin-top: 6px;

    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}


/* ==============================
   HIỆN / ẨN MẬT KHẨU
============================== */

.toggle-password {
    flex-shrink: 0;

    padding: 5px;

    border: none;
    background: transparent;

    color: var(--primary);
    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}

.toggle-password:hover {
    color: var(--primary-dark);
}


/* ==============================
   ĐIỀU KHOẢN
============================== */

.terms-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 18px 0;

    color: var(--gray);
    font-size: 11px;
    line-height: 1.7;
}

.terms-option input {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;

    margin-top: 2px;

    accent-color: var(--primary);
    cursor: pointer;
}

.terms-option label {
    cursor: pointer;
}

.terms-option a {
    color: var(--primary);
    font-weight: bold;
}

.terms-option a:hover {
    text-decoration: underline;
}


/* ==============================
   THÔNG BÁO
============================== */

.form-message {
    margin-bottom: 10px;

    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.form-message.error {
    color: #dc2626;
}

.form-message.success {
    padding: 10px;

    border-radius: 8px;

    background: #ecfdf5;
    color: #047857;
}

.form-message.info {
    padding: 10px;

    border-radius: 8px;

    background: #eff6ff;
    color: #1d4ed8;
}


/* ==============================
   NÚT ĐĂNG KÝ
============================== */

.register-submit {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 18px;

    border: none;
    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #3b82f6,
        #1d4ed8
    );

    color: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 7px 15px rgba(37, 99, 235, 0.18);

    transition: background 0.25s, transform 0.25s;
}

.register-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.register-submit span {
    font-size: 18px;
}


/* ==============================
   LIÊN KẾT ĐĂNG NHẬP
============================== */

.login-link {
    margin-top: 20px;

    color: var(--gray);
    font-size: 11px;
    text-align: center;
}

.login-link a {
    margin-left: 4px;

    color: var(--primary);
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}


/* ==============================
   NÚT KHÁM PHÁ CỬA HÀNG
============================== */

.explore-button {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 20px;
    padding: 10px;

    border: 1px solid #bfdbfe;
    border-radius: 9px;

    background: #eff6ff;
    color: #1d4ed8;

    font-size: 12px;
    font-weight: bold;
    text-align: center;

    transition: background 0.25s, border-color 0.25s;
}

.explore-button:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}


/* ==============================
   CHÂN TRANG
============================== */

.register-footer {
    margin-top: 22px;

    color: #94a3b8;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}


/* ==============================
   RESPONSIVE: TABLET
   DƯỚI 900PX CHUYỂN THÀNH 1 CỘT
============================== */

@media (max-width: 900px) {
    .register-page {
        align-items: flex-start;
        padding: 24px 16px;
    }

    .register-container {
        width: 100%;
        max-width: 650px;

        flex-direction: column;
    }

    .register-banner {
        width: 100%;
        min-height: 370px;

        padding: 30px;
    }

    .banner-content {
        padding: 30px 0;
    }

    .register-form-section {
        width: 100%;
        padding: 30px 40px;
    }

    .brand .brand-icon {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .form-heading .form-logo {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }
}


/* ==============================
   RESPONSIVE: ĐIỆN THOẠI
============================== */

@media (max-width: 480px) {
    .register-page {
        padding: 12px;
    }

    .register-container {
        border-radius: 15px;
    }

    .register-banner {
        min-height: 330px;
        padding: 23px;
    }

    .brand {
        gap: 10px;
    }

    .brand .brand-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand-text h1 {
        font-size: 23px;
    }

    .brand-text p {
        font-size: 11px;
    }

    .banner-content {
        padding: 25px 0;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .banner-content > p {
        font-size: 13px;
    }

    .register-form-section {
        padding: 25px 20px;
    }

    .form-heading h2 {
        font-size: 22px;
    }

    .form-heading .form-logo {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .back-home {
        margin-bottom: 18px;
    }

    .terms-option {
        font-size: 11px;
    }
}


/* ==============================
   ĐIỆN THOẠI RẤT NHỎ
============================== */

@media (max-width: 360px) {
    .register-page {
        padding: 8px;
    }

    .register-banner {
        padding: 18px;
    }

    .register-form-section {
        padding: 22px 15px;
    }

    .brand-text h1 {
        font-size: 20px;
    }

    .banner-content h2 {
        font-size: 25px;
    }
}
