﻿@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

body {
    background: #000;
    font-family: 'Rajdhani', 'Microsoft JhengHei', sans-serif;
    overflow-x: hidden;
}

.reg-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(199, 0, 31, 0.15) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(255, 0, 68, 0.12) 0%, transparent 50%);
    animation: glowMove 20s infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes glowMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

.reg-container {
    position: relative;
    width: 520px;
    max-width: 96%;
    margin: 60px auto;
    z-index: 2;
}

.reg-panel {
    background: rgba(15, 15, 20, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 30, 80, 0.3);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 20, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

    .reg-panel::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(45deg, #ff0040, #ff4080, #c7002b, #8b0030);
        border-radius: 26px;
        z-index: -1;
        animation: borderGlow 6s linear infinite;
        opacity: 0.7;
    }

@keyframes borderGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.reg-panel::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(10, 10, 15, 0.9);
    );
    border-radius: 23px;
    z-index: -1;
}

.reg-panel::title,
.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff3366, #ff6699);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 50, 100, 0.4);
}

.form-row {
    margin-bottom: 28px;
    position: relative;
}

    .form-row label {
        display: block;
        font-size: 16px;
        color: #ccc;
        margin-bottom: 10px;
        font-weight: 600;
        letter-spacing: 1px;
    }

.regtext {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 1px solid rgba(255, 50, 100, 0.3);
    border-radius: 16px;
    background: rgba(20, 20, 30, 0.6);
    color: #fff;
    font-size: 17px;
    transition: all 0.4s ease;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

    .regtext:focus {
        outline: none;
        border-color: #ff3366;
        background: rgba(30, 30, 50, 0.8);
        box-shadow: 0 0 20px rgba(255, 50, 60, 0.4), inset 0 0 20px rgba(255, 50, 100, 0.1);
        transform: translateY(-2px);
    }

.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-input {
    width: 160px !important;
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    font-size: 20px;
}

.captcha-img {
    height: 56px;
    width: 160px;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 80, 120, 0.4);
    transition: all 0.3s;
    background: #111;
}

    .captcha-img:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 50, 100, 0.6);
    }

.val-err {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 13px;
    color: #ff3366;
    font-weight: 500;
    opacity: 0.9;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.btn-submit,
input[type="submit"].btn-submit,
input.btn-submit {
    position: relative !important;
    width: 100% !important;
    max-width: 340px !important;
    height: 72px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 40px !important;
    -webkit-border-radius: 40px !important; 
    -moz-border-radius: 40px !important;
    background: linear-gradient(135deg, #ff1744 0%, #ff4081 50%, #e91e63 100%) !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 12px 30px rgba(255, 23, 68, 0.6), 0 0 50px rgba(255, 65, 129, 0.5), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

    .btn-submit:hover,
    input[type="submit"].btn-submit:hover {
        transform: translateY(-6px) scale(1.04) !important;
        box-shadow: 0 20px 50px rgba(255, 23, 68, 0.8), 0 0 80px rgba(255, 65, 129, 0.8) !important;
    }

    .btn-submit::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        pointer-events: none;
    }

    .btn-submit:active::before {
        width: 500px !important;
        height: 500px !important;
    }

    .btn-submit::after {
        content: '';
        position: absolute;
        inset: -5px;
        background: linear-gradient(45deg, #ff1744, #ff4081, #e91e63, #ff1744);
        border-radius: 45px;
        filter: blur(15px);
        animation: breathe 4s infinite;
        opacity: 0.8;
        z-index: -1;
    }

.btn-reset {
    width: 140px;
    height: 62px;
    background: rgba(50, 50, 60, 0.7);
    border: 1px solid rgba(255, 50, 100, 0.3);
    border-radius: 18px;
    color: #ccc;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-reset:hover {
        background: rgba(80, 80, 100, 0.9);
        color: white;
        border-color: #ff3366;
    }


@media (max-width: 580px) {
    .reg-container {
        width: 96%;
        padding: 0 10px;
        margin: 30px auto;
    }

    .reg-panel {
        padding: 40px 25px;
    }

        .reg-panel::title {
            font-size: 30px;
        }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-submit, .btn-reset {
        width: 100%;
        max-width: none;
    }

    .captcha-row {
        justify-content: space-between;
    }

    .captcha-input {
        width: 48% !important;
    }

    .captcha-img {
        width: 48%;
        height: 50px;
    }
}
@keyframes breathe {
    0%,100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.regtext,
input.regtext,
#loginAccount,
#loginPassword,
#captcha {
    text-align: center !important; 
    line-height: 54px !important; 
    padding: 0 20px !important; 
    letter-spacing: 2px; 
    font-weight: 600; 
}

#captcha,
.captcha-input {
    font-size: 22px !important;
    letter-spacing: 12px !important; 
    padding-left: 28px !important; 
    font-variant-numeric: tabular-nums;
}