/* Register-only forced style layer. Reuses Friding jade palette. */
.auth-register-page {
    --frd-primary: #15AFA7;
    --frd-primary-dark: #0B7C77;
    --frd-primary-darker: #074f4c;
    --frd-accent: #0b9b8c;
    --frd-light: #f0f0f0;
    --frd-electric: #4de2bf;
    --frd-mint: #8af5d4;
    --frd-jade: #1fc8a8;
    font-family: 'Segoe UI', 'Segoe UI Variable', 'Trebuchet MS', sans-serif;
    background: radial-gradient(1200px 650px at 100% -10%, rgba(77, 226, 191, 0.2), transparent 58%),
        radial-gradient(900px 500px at -10% 100%, rgba(11, 156, 140, 0.26), transparent 64%),
        linear-gradient(130deg, #071512 0%, #0a1f1a 48%, #0b2a24 100%);
    color: var(--frd-light);
    overflow-x: hidden;
}

.auth-register-page .auth-container {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(280px, 420px);
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 100vh;
    padding: 1.2rem;
    box-sizing: border-box;
}

.auth-register-page .auth-container::before,
.auth-register-page .auth-container::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(42px);
    z-index: -1;
    pointer-events: none;
}

.auth-register-page .auth-container::before {
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(77, 226, 191, 0.36), rgba(77, 226, 191, 0));
    animation: regFloatGlow 10s ease-in-out infinite;
}

.auth-register-page .auth-container::after {
    right: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(21, 175, 167, 0.32), rgba(21, 175, 167, 0));
    animation: regFloatGlow 12s ease-in-out infinite reverse;
}

.auth-register-page .blur {
    background: linear-gradient(135deg, rgba(4, 16, 14, 0.72) 0%, rgba(4, 16, 14, 0.4) 50%, rgba(4, 16, 14, 0.7) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-register-page .img-2 {
    display: block;
    width: min(34vw, 420px);
    height: min(82vh, 720px);
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(138, 245, 212, 0.16);
    filter: saturate(1.14) contrast(1.04) brightness(0.84);
    box-shadow: 0 24px 52px rgba(2, 10, 12, 0.48);
    animation: regImageReveal 0.9s ease, regImageFloat 13s ease-in-out infinite;
}

.auth-register-page .regis-container {
    position: relative;
    border: 1px solid rgba(138, 245, 212, 0.26);
    background: linear-gradient(155deg, rgba(8, 28, 24, 0.92), rgba(9, 37, 31, 0.8));
    border-radius: 20px;
    width: min(460px, 94vw);
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
    margin: 0;
    padding: 1.2rem 1.15rem 1.3rem;
    box-shadow: 0 16px 40px rgba(2, 11, 10, 0.52), 0 0 0 1px rgba(138, 245, 212, 0.06) inset;
    animation: regCardReveal 0.85s ease;
}

.auth-register-page .regis-container::-webkit-scrollbar {
    width: 7px;
}

.auth-register-page .regis-container::-webkit-scrollbar-thumb {
    background: rgba(77, 226, 191, 0.44);
    border-radius: 999px;
}

.auth-register-page .regis-container .auth-img {
    width: clamp(140px, 20vw, 165px);
    margin: 0.05rem auto 0.45rem;
    filter: drop-shadow(0 8px 18px rgba(7, 24, 20, 0.6));
}

.auth-register-page .regis-container form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    gap: 0.75rem;
}

.auth-register-page .regis-group,
.auth-register-page .regis-pass-group {
    width: 100%;
}

.auth-register-page .regis-group {
    gap: 0.7rem;
}

.auth-register-page .regis-group div,
.auth-register-page .regis-pass-group div {
    position: relative;
    width: 100%;
}

.auth-register-page .regis-group label {
    color: rgba(224, 249, 240, 0.88);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.28rem;
    display: inline-block;
    letter-spacing: 0.01em;
}

.auth-register-page .regis-group div > input,
.auth-register-page .regis-group div > select,
.auth-register-page .regis-pass-group div > input {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1px solid rgba(138, 245, 212, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(7, 26, 21, 0.92) 0%, rgba(5, 19, 16, 0.84) 100%);
    color: #e8fff7;
    padding: 0 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.auth-register-page .regis-pass-group div > input {
    padding-right: 2.7rem;
}

.auth-register-page .regis-group div > input::placeholder,
.auth-register-page .regis-pass-group div > input::placeholder {
    color: rgba(224, 245, 238, 0.58);
}

.auth-register-page .regis-group div > input:focus,
.auth-register-page .regis-group div > select:focus,
.auth-register-page .regis-pass-group div > input:focus {
    outline: none;
    border-color: rgba(77, 226, 191, 0.62);
    box-shadow: 0 0 0 4px rgba(77, 226, 191, 0.13), 0 10px 24px rgba(6, 24, 20, 0.45);
    transform: translateY(-1px);
}

.auth-register-page .regis-group div > select {
    appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #8af5d4 50%),
        linear-gradient(135deg, #8af5d4 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.1rem;
}

.auth-register-page .regis-group div > select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-register-page .regis-pass-group {
    gap: 0.7rem;
}

.auth-register-page .btn-eye {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--frd-mint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.25s ease;
}

.auth-register-page .btn-eye:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(12, 45, 38, 0.42);
    color: var(--frd-electric);
}

.auth-register-page .btn-eye:active {
    transform: translateY(-50%) scale(0.92);
}

.auth-register-page .btn-eye svg {
    width: 18px;
    height: 18px;
}

.auth-register-page .auth-button {
    width: 100%;
    max-width: 360px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(138, 245, 212, 0.35);
    color: #03221d;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--frd-electric) 0%, var(--frd-jade) 100%);
    box-shadow: 0 14px 30px rgba(13, 90, 77, 0.42);
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.auth-register-page .auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(9, 66, 57, 0.48);
    filter: brightness(1.03);
}

.auth-register-page .auth-button:active {
    transform: translateY(0) scale(0.98);
}

.auth-register-page .tc-red {
    background: rgba(94, 15, 19, 0.36);
    border: 1px solid rgba(255, 128, 132, 0.38);
    border-radius: 10px;
    color: #ffd3d6;
    margin: 0 0 0.4rem;
    padding: 0.45rem 0.75rem;
}

.auth-register-page .regis-container > form > a {
    display: inline-block;
    margin-top: 0.2rem;
    color: var(--frd-mint);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.auth-register-page .regis-container > form > a:hover {
    color: #d9fff2;
    text-decoration: underline;
    text-shadow: 0 0 14px rgba(77, 226, 191, 0.34);
}

@keyframes regCardReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes regImageReveal {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes regImageFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes regFloatGlow {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(8px, 10px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1024px) {
    .auth-register-page .auth-container {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 0.95rem 0.8rem 1rem;
    }

    .auth-register-page .img-2 {
        width: min(95vw, 560px);
        height: clamp(180px, 30vh, 260px);
        border-radius: 18px;
    }

    .auth-register-page .regis-container {
        width: min(470px, 95vw);
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .auth-register-page {
        overflow-y: auto;
    }

    .auth-register-page .auth-container {
        min-height: 100vh;
        padding: 0.8rem 0.65rem 1rem;
        gap: 0.75rem;
    }

    .auth-register-page .img-2 {
        height: clamp(160px, 24vh, 220px);
        border-radius: 14px;
    }

    .auth-register-page .regis-container {
        width: min(470px, 100%);
        padding: 1rem 0.88rem 1.1rem;
        border-radius: 16px;
    }

    .auth-register-page .regis-container form {
        max-width: 100%;
        gap: 0.66rem;
    }

    .auth-register-page .regis-group,
    .auth-register-page .regis-pass-group {
        gap: 0.62rem;
    }

    .auth-register-page .regis-group div > input,
    .auth-register-page .regis-group div > select,
    .auth-register-page .regis-pass-group div > input,
    .auth-register-page .auth-button {
        height: 44px;
    }

    .auth-register-page .btn-eye {
        width: 28px;
        height: 28px;
        right: 0.52rem;
    }

    .auth-register-page .btn-eye svg {
        width: 17px;
        height: 17px;
    }
}
