/* ===== Register page — specific styles ===== */

/* Override: register page scrolls, not fixed-height */
.page-body {
    height: auto;
    min-height: calc(100vh - 64px);
    align-items: stretch;
    overflow: visible;
}

.left-col {
    padding: 32px 28px 32px 0;
    overflow-y: auto;
    align-items: center;
    height: auto;
}

/* .page-body's align-items:stretch above is only meant for the scrollable
   sign-up form; keep the mascot column vertically centered like the login
   page instead of anchored to the top of the (taller) stretched row. */
.right-col {
    align-self: center;
    height: auto;
}

/* Sign-up card */
.register-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07),
                0 10px 40px rgba(120,80,220,0.22),
                0 0 0 1px rgba(120,80,220,0.06);
    padding: 40px 44px;
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5dd8d5;
    margin-bottom: 24px;
}

.input-full { margin-bottom: 12px; }

.input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-row .input-full {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .input-row { flex-direction: column; gap: 0; }
    .input-row .input-full { margin-bottom: 12px; }
}

.form-input {
    width: 100%;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    color: #374151;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167,139,250,0.14);
}
.form-input::placeholder { color: #9ca3af; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

.error-text { font-size: 0.78rem; color: #dc2626; margin-top: 3px; }
.form-input.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.10) !important; }
.form-input.input-valid { border-color: #16a34a !important; }

/* Disclaimer */
.disclaimer-caution {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 4px 0 14px;
}
.disclaimer-caution strong { font-weight: 700; }

.disclaimer-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
    max-height: 220px;
    overflow-y: auto;
}
.disclaimer-box h4 {
    color: #dc2626;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 14px;
}
.disclaimer-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 12px;
}
.disclaimer-box p:last-child { margin-bottom: 0; }

/* Agree checkbox row */
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 14px;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.5;
}
.checkbox-wrap input[type="checkbox"] { width: 15px; height: 15px; margin-top: 3px; cursor: pointer; flex-shrink: 0; accent-color: #6c3fd1; }
.checkbox-wrap a { color: #6c3fd1; text-decoration: none; }
.checkbox-wrap a:hover { text-decoration: underline; }

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 8px 13px;
    background: #a495ff;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(90,79,207,0.18);
    transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.92; }

/* Wider glow behind mascot on register */
.char-glow {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(167,139,250,0.32) 0%, rgba(200,180,255,0.12) 48%, rgba(255,255,255,0) 70%);
}

/* Match login page's mascot size */
.register-char-img {
    max-height: calc(48vh + 40px) !important;
}

@media (max-width: 991px) {
    .left-col { padding: 32px 20px; }
    .right-col { height: 300px; }
    .right-col img { max-height: 240px; }
    .char-glow { width: 300px; height: 300px; }
    .register-char-img { max-height: 260px !important; }
}

@media (max-width: 767px) {
    .register-card { padding: 28px 20px; }
}
