/* =====================================================
   COMPACT PROFESSIONAL REGISTRATION UI
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-purple: #6100FF;
    --accent-purple: #7B48FF;
    --bg-light: #F4F6FB;
    --form-bg: #FFFFFF;
    --input-bg: #F9FAFB;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --success: #16A34A;
    --danger: #DC2626;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
}

/* ================= LAYOUT ================= */

.registration-wrapper {

    min-height: 100vh;
    display: flex;
}

.registration-container {
    display: flex;
    min-height: 100vh;
    flex: 1;
}

/* ================= LEFT PANEL ================= */

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #1E1B4B, #6D28D9);
    display: flex;
}

.left-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 50px; /* reduced */
    width: 100%;
    color: #ffffff;
    flex: 1;
}

.left-content h1 {
    font-size: 34px; /* reduced */
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 18px;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 12px;
}

.description {
    font-size: 14px;
    line-height: 1.5;
    max-width: 480px;
}

.sidebar-illustration {
    margin: 30px 0;
    text-align: center;
}

.sidebar-illustration img {
    max-width: 75%;
}



.back-to-site {
    display: inline-flex;
    align-items: center;
    color: black;
    background-color: #f2f5f9;
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    padding: 8px 25px;
    border-radius: 20px;
    gap: 10px;
    width: fit-content;
}

.back-to-site::after {
    content: "↗";
    font-size: 1.2rem;
}

.powered-by {
    font-size: 1.1rem;
    font-weight: 300;
    padding-top:12px;
}

.powered-by b {
    font-weight: 700;
}
/* ================= RIGHT PANEL ================= */

.right-panel {
    flex: 1;
    padding: 35px 35px; /* reduced top space */
    display: flex;
    flex-direction: column;
    align-items: center;
     min-height: 100vh;  
}

/* Header */

.form-header {
    width: 100%;
    max-width: 680px;
    margin-bottom: 1px; /* reduced */
    padding-top: 14px;
}

/* Wrap form header + card together naturally */
.form-header,
.registration-card {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.form-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================= CARD ================= */

.registration-card {
    background: var(--form-bg);
    width: 100%;
    max-width: 680px;
    border-radius: 14px;
    padding: 25px 28px; /* reduced */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);

}

/* ================= GRID ================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 11px; /* reduced spacing */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
}

/* ================= INPUTS ================= */

.form-control,
textarea,
select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 6px; /* reduced height */
    font-size: 13px;
    transition: 0.2s ease;
}

.form-control:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(123, 72, 255, 0.12);
    background: #ffffff;
}

/* ================= RADIO ================= */

.radio-options {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.radio-options label {
    font-size: 13px;
}

/* ================= EMAIL VERIFICATION ================= */

.form-footer {
    grid-column: span 2;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-verification {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.verify-info h4 {
    font-size: 14px;
}

.verify-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.req-otp-btn {
    border: 1px solid var(--accent-purple);
    background: transparent;
    color: var(--accent-purple);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.req-otp-btn:hover {
    background: var(--accent-purple);
    color: #ffffff;
}

/* ================= TERMS ================= */

.terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= REGISTER BUTTON ================= */

.register-btn {
    background: linear-gradient(135deg, #4C1D95, #6D28D9);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(76, 29, 149, 0.25);
}

/* ================= SIGNIN CARD ================= */

.signin-card {
    background: white;
    width: 100%;
    max-width: 680px;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    margin-top: auto;   /* THIS pushes it down */
}

.signin-card a {
    color: var(--accent-purple);
    font-weight: 600;
    text-decoration: none;
}

/* ================= ERROR / SUCCESS ================= */

.text-danger {
    color: var(--danger);
    font-size: 11px;
}

.text-success {
    color: var(--success);
    font-size: 12px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .registration-container {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 25px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .form-footer {
        grid-column: span 1;
    }

    .registration-card {
        padding: 20px;
    }
}
