
/* ── REGISTER PAGE — matches login design ── */
.reg-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
    width: 100%;
    background-color: #f8fafc;
}

.reg-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    box-sizing: border-box;
    animation: regReveal 0.5s cubic-bezier(0.16,1,0.3,1);
}
@keyframes regReveal {
    from { transform: translateY(15px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Header */
.reg-title {
    font-size: 2rem;
    font-weight: 800;
    color: #090d16;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.reg-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Form fields */
.reg-group { margin-bottom: 20px; }
.reg-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #090d16;
    margin-bottom: 8px;
}
.reg-input {
    width: 100%;
    height: 54px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.reg-input::placeholder { color: #94a3b8; font-weight: 400; }
.reg-input:focus {
    border-color: var(--theme-color, #703fec);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-color,#703fec) 12%, transparent);
}

/* Two-column password row */
.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .reg-row { grid-template-columns: 1fr; }
}

/* Password wrapper */
.reg-pw-wrap { position: relative; }
.reg-pw-wrap .reg-input { padding-right: 44px; }
.reg-pw-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}
.reg-pw-toggle:hover { color: var(--theme-color, #703fec); }

/* Error */
.reg-error {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 700;
    margin-top: 5px;
}
.reg-error-box {
    background: #fee2e2;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #ef4444;
}

/* Submit */
.reg-btn {
    width: 100%;
    height: 54px;
    background: var(--theme-color, #703fec);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-color,#703fec) 30%, transparent);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.reg-btn:hover { transform: translateY(-1px); filter: brightness(108%); }

/* Separator */
.reg-sep {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #090d16;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 24px 0;
}
.reg-sep::before, .reg-sep::after {
    content: ""; flex: 1; height: 1px; background: #e2e8f0;
}

/* Google */
.reg-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}
.reg-google:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Footer */
.reg-footer {
    text-align: center;
    margin-top: 26px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.reg-footer a {
    color: var(--theme-color, #703fec);
    text-decoration: none;
    font-weight: 800;
}
.reg-footer a:hover { text-decoration: underline; }

/* Mobile full-screen */
@media (max-width: 640px) {
    .reg-container { padding: 0; align-items: flex-start; min-height: 100vh; }
    .reg-card {
        max-width: 100%; min-height: 100vh;
        border-radius: 0; border: none; box-shadow: none;
        padding: 36px 22px 80px; animation: none;
    }
    .reg-title { font-size: 1.8rem; }
}
