﻿:root {
    --brand-teal: #0FB5AF;
    --brand-purple: #7E41F6;
    --cta1: #FF8A00;
    --cta2: #FF5E00;
    --ink: #15202B;
}

body {
    background: #f4f6fa;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
    color: var(--ink);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 1080px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(20,28,45,.12);
    overflow: hidden;
}
/* Left hero */
.hero {
    position: relative;
    background: radial-gradient(1200px 600px at -10% -30%, rgba(255,255,255,.08) 0, rgba(255,255,255,0) 60%), radial-gradient(800px 500px at 120% 20%, rgba(255,255,255,.08) 0, rgba(255,255,255,0) 55%), linear-gradient(160deg, var(--brand-teal) 0%, var(--brand-purple) 100%);
    color: #fff;
    height: 100%;
    padding: 48px 40px;
}

.brand-badge {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #fff1;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.35);
    backdrop-filter: saturate(120%) blur(2px);
}

    .brand-badge svg {
        width: 34px;
        height: 34px;
        fill: #FFD166;
        filter: drop-shadow(0 2px 0 rgba(0,0,0,.15));
    }

.hero h1 {
    font-weight: 800;
    letter-spacing: .2px;
    margin-top: 18px;
}

.hero-sub {
    opacity: .95;
    line-height: 1.6;
    margin: 14px 0 22px;
}

.hero-illus {
    width: 100%;
    max-width: 420px;
    margin-top: 18px;
    filter: drop-shadow(0 14px 30px rgba(0,0,0,.15));
}

/* Right form */
.form-side {
    padding: 40px 34px;
}

@media (min-width: 992px) {
    .form-side {
        padding: 56px 56px;
    }
}

.form-title {
    font-weight: 800;
    letter-spacing: .2px;
}

.input-ico {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .65;
}

.input-wrap {
    position: relative;
}

.toggle-pass {
    cursor: pointer;
}

.btn-cta {
    background: linear-gradient(90deg, var(--cta1), var(--cta2));
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 8px 18px rgba(255,138,0,.35);
}

    .btn-cta:hover {
        filter: brightness(.95);
    }

.hint a {
    text-decoration: none;
}

.form-text-small {
    font-size: .925rem;
    color: #5b6672;
}

/* Small footer note */
.tiny {
    font-size: .85rem;
    color: #6b7785;
}

.social-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 10px
}

.social-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e6e9f0;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .social-round:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0,0,0,.12)
    }
/* brand backgrounds */
.social-fb {
    background: #1877F2
}

.social-yt {
    background: #FF0000
}

.social-tt {
    background: #000
}

.social-round svg {
    width: 24px;
    height: 24px
}

/* Floating label base */
.float-group {
    position: relative;
}

/* Input: tăng padding-top để chừa chỗ cho label khi nổi lên */
.float-input {
    padding-top: 1.35rem; /* cho form-control-lg */
    padding-bottom: .6rem;
    padding-right: 2.5rem; /* chừa chỗ icon bên phải */
}

/* Icon trong ô */
.float-group .input-ico {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto; /* để click được icon show/hide pass */
    opacity: .85;
}

/* Nhãn nổi: bắt đầu nằm giữa chiều cao input */
.float-label {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all .16s ease;
    font-size: 1rem;
    color: #6c757d; /* text-muted */
    background: #fff; /* nền trắng để "che" viền input khi nổi */
    padding: 0 .25rem;
    pointer-events: none;
}

/* Khi focus hoặc có giá trị: nhãn thu nhỏ và nổi lên trên */
.float-input:focus + .float-label,
.float-input:not(:placeholder-shown) + .float-label,
.float-group.has-value .float-label {
    top: .35rem;
    transform: none;
    font-size: .78rem;
    color: #7E41F6; /* tím thương hiệu */
}

/* Trạng thái lỗi của Bootstrap */
.float-input.is-invalid {
    border-color: #dc3545;
}

    .float-input.is-invalid + .float-label {
        color: #dc3545;
    }

/* Dark/gradient nền: nếu ô nằm trên nền màu, có thể cần đổi background label */
.auth-shell .float-label {
    background: #fff; /* đổi thành màu nền form nếu form-side dùng màu khác */
}