﻿
    /* Force Single View */
    body.page-register {
        overflow: hidden;
    }
    .reg-card {
        background: rgba(13, 17, 23, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        padding: 30px 40px;
        width: 100%;
        max-width: 720px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        position: relative;
        overflow: hidden;
        animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        margin-right: 25vw;
    }

    .reg-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    }

    .reg-bg-layer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../images/user/bg-class111111111111.jpg') no-repeat center center;
        background-size: cover;
        z-index: -2;
    }

    .lantern-layer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
    }

    /* Main Content Layout (Center Pair) */
    .register-page-container {
        height: calc(100vh - 70px);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10;
    }

    /* Character Composition (Move Inwards) */
.reg-char-layer {
    position: fixed;
    bottom: 0px;
    right: 15%;
    /* เว้นที่ให้ฟอร์ม */
    width: 45%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: url('../images/user/ygwolf.png');
    background-repeat: no-repeat;
    background-position: center bottom 0;
    background-size: auto 90%;
    mix-blend-mode: screen;
    filter: contrast(1.1) brightness(1.2);
    animation: bgFadeIn 1s ease-out;
}

    @keyframes bgFadeIn {
        from {
            opacity: 0;
            transform: scale(1.05);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .char-shadow {
        display: none;
    }

    /* Desktop Card Style */
    .reg-card {
        background: rgba(13, 17, 23, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        padding: 30px 40px;
        width: 100%;
        max-width: 720px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        position: relative;
        overflow: hidden;
        animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        margin-right: 25vw;
    }

    .reg-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(40px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .reg-header {
        text-align: center;
        margin-bottom: 25px;
    }

    .reg-title {
        font-size: 28px;
        font-weight: 800;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
        margin-bottom: 5px;
    }

    .reg-desc {
        font-size: 14px;
        color: #94a3b8;
    }

    .reg-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 25px;
    }

    .form-group label {
        display: block;
        font-size: 13px;
        color: #cbd5e1;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .input-wrapper {
        position: relative;
    }

    .form-input {
        width: 100%;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 10px 15px 10px 40px;
        color: #fff;
        font-size: 14px;
        transition: 0.3s;
    }

    .form-input:focus {
        background: rgba(0, 0, 0, 0.6);
        border-color: #f59e0b;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        outline: none;
    }

    .input-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 14px;
        transition: 0.3s;
    }

    .form-input:focus+.input-icon {
        color: #f59e0b;
    }

    .col-full {
        grid-column: 1 / -1;
    }

    .pin-input {
        text-align: center;
        font-size: 18px;
        letter-spacing: 5px;
        font-weight: bold;
        color: #f59e0b;
        border-color: rgba(245, 158, 11, 0.3);
    }

    .captcha-container {
        display: flex;
        gap: 10px;
        height: 42px;
    }

    .captcha-img-box {
        flex: 0 0 120px;
        border-radius: 6px;
        overflow: hidden;
        cursor: pointer;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .captcha-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .captcha-refresh-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        opacity: 0;
        transition: 0.3s;
        font-size: 18px;
    }

    .captcha-img-box:hover .captcha-refresh-overlay {
        opacity: 1;
    }

    .btn-submit {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        border: none;
        border-radius: 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: 0.3s;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        margin-top: 10px;
    }

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    }

    .mini-footer {
        text-align: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 12px;
        color: #64748b;
    }

    /* Responsive Mobile (< 900px) - SUPER COMPACT */
    @media (max-width: 900px) {
        .register-page-container {
            height: auto;
            min-height: 100vh;
            padding: 10px;
            align-items: center;
            /* จัดกลาง */
            display: flex;
        }

        .reg-card {
            margin: 0 auto;
            width: 100%;
            max-width: 380px;
            padding: 15px 15px;
            /* ลด Padding */
            background: rgba(13, 17, 23, 0.95);
        }

        /* Compact Header */
        .reg-header {
            margin-bottom: 15px;
        }

        .reg-title {
            font-size: 20px;
            margin-bottom: 0;
            letter-spacing: 1px;
        }

        .reg-desc {
            display: none;
        }

        /* ซ่อนคำบรรยาย */

        /* Compact Grid */
        .reg-form-grid {
            grid-template-columns: 1fr;
            gap: 8px;
            /* ลดระยะห่าง */
        }

        .form-group {
            margin-bottom: 0;
        }

        .form-group label {
            font-size: 12px;
            margin-bottom: 2px;
        }

        .form-input {
            padding: 8px 10px 8px 35px;
            /* ลดขนาด Input */
            font-size: 14px;
            height: 38px;
        }

        .input-icon {
            left: 12px;
            font-size: 13px;
        }

        /* Captcha Compact */
        .captcha-container {
            height: 38px;
        }

        .captcha-img-box {
            flex: 0 0 100px;
        }

        .btn-submit {
            padding: 8px;
            font-size: 16px;
            margin-top: 5px;
        }

        /* Footer */
        .mini-footer {
            margin-top: 10px;
            padding-top: 10px;
            font-size: 11px;
        }

        /* Hide Lanterns to save performance */
        .lantern-layer {
            display: none;
        }

        /* Bg Character */
        .reg-char-layer {
            opacity: 0.1;
        }
    }
