/* =========================
   PREMIUM REGISTER PAGE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.register-hero-page {
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(180, 25, 50, 0.20), transparent 26%),
        radial-gradient(circle at 85% 80%, rgba(120, 0, 0, 0.28), transparent 30%),
        linear-gradient(135deg, #220003 0%, #3b0006 28%, #5a0008 58%, #300004 100%);
}

/* =========================
   OVERLAY
========================= */

.register-hero-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(20, 0, 0, 0.35), rgba(25, 0, 0, 0.50)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 25%);
    pointer-events: none;
}

/* =========================
   FLOATING BLURS
========================= */

.register-bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    animation: floatBlob 9s ease-in-out infinite;
}

.blur-one {
    width: 260px;
    height: 260px;
    background: rgba(255, 90, 120, 0.16);
    top: 8%;
    left: 4%;
}

.blur-two {
    width: 320px;
    height: 320px;
    background: rgba(255, 140, 140, 0.10);
    bottom: 8%;
    right: 7%;
    animation-delay: 1.8s;
}

.blur-three {
    width: 200px;
    height: 200px;
    background: rgba(180, 20, 20, 0.16);
    top: 45%;
    right: 34%;
    animation-delay: 3s;
}

/* =========================
   LAYOUT
========================= */

.register-hero-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 44px;
    padding: 34px 60px;
}

/* =========================
   LEFT SIDE
========================= */

.register-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    padding-top: 0;
}

.register-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.register-brand-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.register-brand-text {
    font-size: 31px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.register-hero-copy {
    position: relative;
    top: -12px;
}

.register-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffe7e7;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: fit-content;
}

.register-hero-copy h1 {
    max-width: 650px;
    color: #ffffff;
    font-size: 72px;
    line-height: 1.02;
    font-weight: 800;
    margin: 0 0 24px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.register-hero-copy p {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 22px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

/* =========================
   RIGHT SIDE
========================= */

.register-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   CARD
========================= */

.register-glass-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    padding: 38px 38px 28px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.28),
        0 14px 35px rgba(110, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: cardFloatIn 1s ease;
}

.register-glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 38px 100px rgba(0, 0, 0, 0.30),
        0 18px 45px rgba(110, 0, 0, 0.18);
}

.card-glow-line {
    position: absolute;
    top: 0;
    left: -35%;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #b7122a, #ff9191, transparent);
    animation: lineMove 3.8s linear infinite;
    opacity: 0.95;
}

.register-glass-card h2 {
    color: #751019;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 8px;
}

.register-card-subtext {
    margin: 0 0 24px;
    color: #7a5d5d;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

/* =========================
   FORM
========================= */

.register-glass-card label {
    display: block;
    color: #6b2a24;
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.register-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.register-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    opacity: 0.72;
    transition: 0.25s ease;
}

.register-input-wrap input {
    width: 100%;
    height: 60px;
    border: 1px solid rgba(128, 128, 128, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    border-radius: 16px;
    padding: 0 18px 0 52px;
    font-size: 17px;
    color: #402020;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.register-input-wrap input::placeholder {
    color: #a58282;
}

.register-input-wrap input:focus {
    border-color: #971824;
    box-shadow: 0 0 0 4px rgba(151, 24, 36, 0.12);
    background: #ffffff;
    transform: translateY(-1px);
}

.register-input-wrap:focus-within .register-input-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.password-wrap input {
    padding-right: 58px;
}

/* ============ PASSWORD STRENGTH CHECKLIST ============
   Deliberately dark/gold, unlike the rest of this light card, same maroon
   gradient already used for the VisualED email headers (send_reset_code.php
   etc.), so it reads as a consistent brand accent, not an unrelated style. */
.password-checklist {
    list-style: none;
    margin: -8px 0 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: linear-gradient(135deg, #6b0f1a, #8b1e2d);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 14px;
    font-size: 13.5px;
    box-shadow: 0 8px 20px rgba(107, 15, 26, 0.25);
}

.password-checklist[hidden] {
    display: none;
}

.password-checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.15s ease;
}

.password-checklist li .pwc-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.password-checklist li.met {
    color: #6ee7b7;
}

.password-checklist li.met .pwc-icon {
    border-color: #6ee7b7;
    background: #6ee7b7;
}

.password-checklist li.met .pwc-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #6b0f1a;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #7e4d4d;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.toggle-password:hover {
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.eye-icon {
    width: 20px;
    height: 20px;
    fill: #666666;
    transition: fill 0.2s ease;
}

.toggle-password:hover .eye-icon {
    fill: #444444;
}

/* =========================
   BUTTON
========================= */

.register-submit-btn {
    position: relative;
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(90deg, #6d0d16 0%, #8f1220 45%, #b01727 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(105, 0, 8, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    margin-top: 6px;
}

.register-submit-btn span {
    position: relative;
    z-index: 2;
}

.register-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.42) 50%,
        transparent 70%
    );
    transform: skewX(-20deg);
    transition: none;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgba(105, 0, 8, 0.34);
}

.register-submit-btn:hover::before {
    animation: btnShine 1s ease;
}

.register-submit-btn:active {
    transform: translateY(0);
}

/* =========================
   LINKS
========================= */

.register-login-link {
    text-align: center;
    color: #7a5a55;
    font-size: 16px;
    margin: 18px 0 16px;
}

.register-login-link a {
    color: #7a0c14;
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

.register-login-link a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #7a0c14;
    transition: width 0.25s ease;
}

.register-login-link a:hover::after {
    width: 100%;
}

/* =========================
   FEATURES
========================= */

.register-feature-list {
    margin: 0 -38px -28px;
    padding: 20px 38px 24px;
    border-top: 1px solid rgba(100, 30, 30, 0.14);
    background: linear-gradient(180deg, rgba(255, 248, 248, 0.7), rgba(255, 243, 243, 0.95));
}

.register-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5b2d2b;
    font-size: 16px;
    margin-bottom: 11px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease forwards;
}

.register-feature-item:nth-child(1) {
    animation-delay: 0.55s;
}

.register-feature-item:nth-child(2) {
    animation-delay: 0.75s;
}

.register-feature-item:nth-child(3) {
    animation-delay: 0.95s;
}

.feature-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c7d31, #7fa345);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14.5px;
    box-shadow: 0 6px 14px rgba(71, 109, 23, 0.18);
    flex-shrink: 0;
}

/* =========================
   ANIMATION HELPERS
========================= */

.fade-slide {
    opacity: 0;
    transform: translateY(26px);
    animation: fadeUp 0.9s ease forwards;
}

.fade-delay-1 {
    animation-delay: 0.15s;
}

.fade-delay-2 {
    animation-delay: 0.3s;
}

.fade-delay-3 {
    animation-delay: 0.45s;
}

.fade-delay-4 {
    animation-delay: 0.62s;
}

/* =========================
   KEYFRAMES
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBlob {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-20px) translateX(12px) scale(1.05);
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

@keyframes btnShine {
    from {
        left: -120%;
    }
    to {
        left: 140%;
    }
}

@keyframes lineMove {
    0% {
        left: -35%;
    }
    100% {
        left: 110%;
    }
}

@keyframes cardFloatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .register-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 34px 30px 46px;
    }

    .register-hero-left {
        padding-top: 0;
    }

    .register-brand-row {
        margin-bottom: 8px;
    }

    .register-hero-copy {
        position: relative;
        top: -20px;
    }

    .register-hero-copy h1 {
        max-width: 100%;
        font-size: 54px;
    }

    .register-hero-copy p {
        max-width: 100%;
        font-size: 19px;
    }

    .register-hero-right {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .register-hero-wrapper {
        padding: 22px 16px 34px;
    }

    .register-brand-logo {
        width: 58px;
        height: 58px;
    }

    .register-brand-text {
        font-size: 25px;
    }

    .register-hero-copy h1 {
        font-size: 38px;
        line-height: 1.08;
    }

    .register-hero-copy p {
        font-size: 17px;
        line-height: 1.55;
    }

    .register-glass-card {
        border-radius: 22px;
        padding: 24px 18px 20px;
    }

    .register-glass-card h2 {
        font-size: 28px;
    }

    .register-feature-list {
        margin: 0 -18px -20px;
        padding: 18px 18px 20px;
    }

    .register-input-wrap input,
    .register-submit-btn {
        height: 56px;
    }
}