/* ============================================================
   register.css  —  Styles for the OCCAS Register Page
   Shares the same design language as login.css
   Self-hosted fonts loaded via fonts.css (no external calls)
   ============================================================ */

/* ─── Base ─────────────────────────────────────────────────── */
body {
    background-image: url('../img/justice.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    font-family: 'Inter', sans-serif !important;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Photo overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(219, 222, 236, 0.52);
    z-index: 0;
    pointer-events: none;
}

/* ─── Animated Blob Background ──────────────────────────────── */
.blob-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: floatBlob 12s ease-in-out infinite alternate;
}

.blob-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, #c7d2fe, #818cf8);
    top: -120px; left: -120px;
    animation-delay: 0s;
}

.blob-2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #bfdbfe, #6ee7b7);
    bottom: -80px; right: -80px;
    animation-delay: 3s;
}

.blob-3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #fce7f3, #fbcfe8);
    top: 55%; left: 40%;
    animation-delay: 6s;
    animation-duration: 15s;
}

@keyframes floatBlob {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -30px) scale(1.07); }
    100% { transform: translate(-20px, 20px) scale(0.96); }
}

/* ─── Section wrapper ───────────────────────────────────────── */
.register-section {
    position: relative;
    z-index: 1;
}

/* ─── Slide-in animations ───────────────────────────────────── */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-left  { animation: slideInLeft  0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-right { animation: slideInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.anim-up    { animation: fadeInUp     0.5s ease both; }

/* ─── Password rules panel ───────────────────────────────────── */
.password-rules-panel {
    background: #f0f4ff;
    border: 1.5px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 4px;
}

.password-rules-panel p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.password-rules-panel ul {
    margin: 0;
    padding-left: 16px;
    list-style: none;
}

.password-rules-panel ul li {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.7;
    padding-left: 4px;
}

.password-rules-panel ul li::before {
    content: '✓ ';
    color: #6366f1;
    font-weight: 700;
}

/* ─── Register Card ─────────────────────────────────────────── */
h4, h5, .card-title {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
}

.register-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(99, 102, 241, 0.1) !important;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    overflow: hidden;
}

.register-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06), 0 32px 64px rgba(99, 102, 241, 0.18) !important;
}

/* Accent bar on top of the card */
.register-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 20px 20px 0 0;
}

.register-card .card-body {
    padding: 28px 32px 32px !important;
}

.card-title {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #1e1b4b !important;
    margin-bottom: 2px;
}

.card-subtitle-text {
    font-size: 0.83rem;
    color: #64748b;
}

/* ─── Labels ─────────────────────────────────────────────────── */
.form-label-custom {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* ─── Inputs ─────────────────────────────────────────────────── */
.input-group {
    border-radius: 10px;
    overflow: visible;
}

.input-group-text {
    background: #f8faff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-right: none !important;
    color: #94a3b8 !important;
    border-radius: 10px 0 0 10px !important;
    transition: all 0.25s ease;
    padding: 0 14px;
}

.form-control {
    background: #f8faff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-left: none !important;
    color: #1e293b !important;
    border-radius: 0 10px 10px 0 !important;
    height: 44px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.form-control::placeholder {
    color: #c1c9d8 !important;
    font-size: 0.88rem;
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
    border-color: #6366f1 !important;
    background: #fdfcff !important;
}

.input-group:focus-within .input-group-text {
    color: #6366f1 !important;
}

.form-control:focus {
    box-shadow: none !important;
    color: #1e293b !important;
}

/* Append (password eye toggle) */
.input-group-append .input-group-text {
    border-left: none !important;
    border-right: 1.5px solid #e2e8f0 !important;
    border-radius: 0 10px 10px 0 !important;
}

.input-group:focus-within .input-group-append .input-group-text {
    border-color: #6366f1 !important;
}

#UserPassword,
#UserConfirmPassword {
    border-radius: 0 !important;
}

/* Validation */
.form-control.is-invalid {
    border-color: #f87171 !important;
    background: #fff5f5 !important;
    box-shadow: none !important;
}

.input-group:has(.is-invalid) .input-group-text {
    border-color: #f87171 !important;
}

.invalid-feedback { font-size: 0.78rem; color: #ef4444; }

/* ─── Captcha box ────────────────────────────────────────────── */
.captcha-box {
    background: #f8faff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    transition: border-color 0.25s ease;
}

.captcha-box:hover { border-color: #c7d2fe; }

.captcha-box img { border-radius: 6px; height: 36px; }

.btn-refresh {
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #6366f1 !important;
    border-radius: 8px !important;
    font-size: 0.8rem;
    padding: 5px 10px;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: #e0e7ff !important;
    border-color: #a5b4fc !important;
    transform: rotate(90deg);
}

/* ─── Register Button ────────────────────────────────────────── */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    border-radius: 10px !important;
    height: 44px;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
    position: relative;
    overflow: hidden;
}

.btn-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-gradient:hover::after { opacity: 1; }

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5) !important;
}

.btn-gradient:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.btn-gradient span { position: relative; z-index: 1; }

/* ─── Links ──────────────────────────────────────────────────── */
a {
    color: #6366f1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4f46e5 !important;
    text-decoration: underline;
}

.link-small { font-size: 0.82rem; }

/* ─── Divider ────────────────────────────────────────────────── */
.divider-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ─── Bootstrap utility overrides ────────────────────────────── */
.text-primary { color: #6366f1 !important; }
.text-muted   { color: #94a3b8 !important; }
