/* ═════════════════ ROOT VARIABLES ═════════════════ */
:root {
    --primary: #3667bc;
    --primary-dark: #2a52a0;
    --primary-deeper: #1e3d7a;
    --primary-light: #5a83cc;

    --primary-pale: #eef2fb;
    --cream: #f4f7fd;
    --white: #fff;

    --text: #1e2d4a;
    --muted: #6b7a96;

    --border: #d1daf0;
    --danger: #e05252;

    --shadow-sm: 0 4px 14px rgba(54, 103, 188, 0.15);
    --shadow-md: 0 10px 28px rgba(54, 103, 188, 0.18);
    --shadow-lg: 0 20px 60px rgba(54, 103, 188, 0.14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: 0.2s ease;
}

/* ═════════════════ BASE ═════════════════ */
body {
    background: var(--cream);
    color: var(--text);
}

#page-content-wrap {
    padding: 0 0 40px;
}

.register-page-inner,
.login-grid {
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ═════════════════ COMMON BUTTON ═════════════════ */
.btn-brand {
    display: inline-block;
    padding: 12px 34px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);

    color: var(--white) !important;
    text-decoration: none;

    font-weight: 700;
    letter-spacing: 1px;

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn-brand:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ═════════════════ PAGE TITLE ═════════════════ */
.page-title-content h1 {
    margin-bottom: 14px;
    font-size: 3rem;
    color: var(--white);
    letter-spacing: -0.5px;
}

.page-title-content p {
    max-width: 480px;
    margin: 0 auto 24px;

    font-size: 1.5rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.8);
}

/* ═════════════════ FORM WRAPPER ═════════════════ */
.register-page-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
}

/* ═════════════════ FORM HEADER ═════════════════ */
.form-header {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 32px 40px;

    background: linear-gradient(
        90deg,
        var(--primary-deeper),
        var(--primary)
    );
}

.form-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);

    background: rgba(255, 255, 255, 0.15);

    color: var(--white);
    font-size: 22px;
}

.form-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--white);
}

.form-header p {
    margin: 2px 0 0;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ═════════════════ FORM BODY ═════════════════ */
.form-body {
    padding: 40px;
}

/* ═════════════════ SECTION LABEL ═════════════════ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 36px 0 20px;
    padding: 5px 12px 5px 1px;

    border: 1px solid #eef2fb;
    border-left: 0;
    border-radius: 6px;

    background: #fdfeff;

    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--primary);
}

.section-label:first-of-type {
    margin-top: 0;
}

.section-label::before {
    content: "";

    width: 4px;
    height: 16px;

    border-radius: 2px;
    background: var(--primary);
}

/* ═════════════════ PHOTO UPLOAD ═════════════════ */
.photo-upload-area {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 8px;
}

.upload-btn,
.image-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
}

.upload-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 2px dashed var(--border);

    background: var(--primary-pale);

    cursor: pointer;

    color: var(--muted);
    font-size: 13px;

    transition: all 0.25s ease;
}

.upload-btn i {
    font-size: 22px;
}

.upload-btn:hover {
    border-color: var(--primary);
    background: #dce8f8;
    color: var(--primary);
}

.image-preview {
    display: none;
    overflow: hidden;

    border: 3px solid var(--primary);

    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-hint {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
}

.upload-hint strong {
    color: var(--text);
}

/* ═════════════════ FORM CONTROLS ═════════════════ */
label.required::after {
    content: " *";
    color: var(--danger);
}

.form-group label {
    display: block;
    margin-bottom: 7px;

    font-size: 15px;
    font-weight: 600;

    color: var(--text);
}

.form-control,
.input-wrap input {
    width: 100%;

    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--white);

    color: var(--text);
    font-size: 15px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.form-control {
    padding: 13px 16px;
    line-height: 20px !important;
}

textarea.form-control {
    min-height: 95px;
    resize: vertical;
}

.form-control:focus,
.input-wrap input:focus {
    outline: none;
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(54, 103, 188, 0.14);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.text-danger {
    display: block;
    margin-top: 4px;

    font-size: 13px;
    color: var(--danger);
}

.nice-select ul.list {
    width: 100%;
}

/* ═════════════════ SELECT ═════════════════ */
select.form-control {
    appearance: none;
    padding-right: 38px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233667bc' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* ═════════════════ INPUT WRAP ═════════════════ */
.input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.input-wrap .input-icon,
.input-wrap .toggle-pass {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.input-wrap .input-icon {
    left: 14px;

    color: var(--primary);
    font-size: 14px;

    pointer-events: none;
}

.input-wrap input {
    padding: 14px 42px;
    background: var(--primary-pale);
}

.input-wrap input::placeholder {
    color: #9aaac4;
    font-size: 14px;
}

.input-wrap input:focus {
    background: var(--white);
}

.input-wrap .toggle-pass {
    right: 14px;

    border: 0;
    background: transparent;

    color: var(--muted);
    font-size: 14px;

    cursor: pointer;
}

.input-wrap .toggle-pass:hover {
    color: var(--primary);
}

/* ═════════════════ BUTTONS ═════════════════ */
.btn-reg,
.btn-login {
    border: 0;
    cursor: pointer;

    color: var(--white);
    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.btn-reg:hover,
.btn-login:hover {
    transform: translateY(-2px);
}

.btn-reg {
    margin-top: 8px;
    padding: 15px 52px;
    border-radius: 40px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    box-shadow: 0 6px 20px rgba(54, 103, 188, 0.35);
}

.btn-login {
    width: 100%;
    padding: 14px;

    border-radius: var(--radius-sm);

    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary-light)
    );

    box-shadow: 0 5px 18px rgba(54, 103, 188, 0.32);
}

/* ═════════════════ LOGIN LAYOUT ═════════════════ */
.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    min-height: 540px;
    border-radius: 22px;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px 44px;

    background: var(--white);
}

/* ═════════════════ LOGO ═════════════════ */
.login-panel-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 32px;
}

.logo-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    border-radius: 11px;

    background: linear-gradient(
        135deg,
        var(--primary-deeper),
        var(--primary)
    );
}

.logo-dot i {
    color: var(--white);
    font-size: 18px;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.logo-text small {
    display: block;

    font-size: 12px;
    font-weight: 400;

    color: var(--muted);
}

/* ═════════════════ LOGIN CONTENT ═════════════════ */
.login-panel h2,
.hero-panel h2 {
    line-height: 1.2;
}

.login-panel h2 {
    margin-bottom: 6px;
    font-size: 2rem;
}

.subtitle,
.register-cta,
.forgot-link a,
.divider {
    color: var(--muted);
}

.subtitle {
    margin-bottom: 30px;
    font-size: 15px;
}

.subtitle a,
.register-cta a {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.subtitle a:hover,
.forgot-link a:hover {
    text-decoration: underline;
}

/* ═════════════════ LOGIN EXTRA ═════════════════ */
.forgot-link {
    margin: -6px 0 20px;
    text-align: right;
}

.forgot-link a {
    font-size: 13px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 22px 0;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;
    height: 1px;

    background: var(--border);
}

/* ═════════════════ REGISTER CTA ═════════════════ */
.register-cta {
    text-align: center;
    font-size: 14px;
}

.register-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 10px;
    padding: 13px 28px;

    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);

    font-size: 15px;
    font-weight: 700;

    transition:
        background var(--transition),
        color var(--transition);
}

.register-cta a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ═════════════════ HERO PANEL ═════════════════ */
.hero-panel {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 44px;

    background-size: cover;
    background-position: center;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        160deg,
        rgba(30, 61, 122, 0.45) 0%,
        rgba(30, 61, 122, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 16px;
    padding: 6px 16px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);

    color: rgba(255, 255, 255, 0.9);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #4ade80;
}

.hero-panel h2 {
    margin-bottom: 18px;

    font-size: 2rem;
    color: var(--white);
}

/* ═════════════════ HERO FEATURES ═════════════════ */
.hero-features {
    margin: 0 0 26px;
    padding: 0;

    list-style: none;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.hero-features li:last-child {
    border-bottom: 0;
}

.feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 30px;
    height: 30px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.15);

    color: var(--white);
    font-size: 13px;
}

/* ═════════════════ HERO STATS ═════════════════ */
.hero-stat {
    display: flex;
    gap: 0;

    padding: 18px 20px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-item .num {
    display: block;

    color: var(--white);

    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-item .lbl {
    display: block;
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    margin: 4px 0;

    background: rgba(255, 255, 255, 0.18);
}

/* ═════════════════ RESPONSIVE ═════════════════ */
@media (max-width: 991px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 300px;
        padding: 32px;
    }

    .login-panel,
    .form-body {
        padding: 32px 24px;
    }

    .form-header {
        padding: 24px;
    }

    .page-title-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-title-content p {
        font-size: 1.15rem;
    }

    .hero-panel,
    .login-panel,
    .form-body {
        padding: 24px 20px;
    }

    .photo-upload-area {
        flex-direction: column;
    }
}