.signup-wrapper {

    padding-bottom: 5px;
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -25px;
}

/* ===== Layout Split ===== */
.signup-layout {
    display: flex;
    gap: 10px;
    max-width: 1600px;
    margin: auto;
    align-items: flex-start;
}

/* LEFT PANEL - CLEAN IMPROVED */

.signup-top-notes {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.signup-top-notes h3 {
    margin-bottom: 10px;
}

.signup-top-notes .info-list {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin: 0;
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Legal links -------- */

.signup-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-links {
    margin: 0;
}

.legal-links {
    margin-top: 0;
    margin-right: 30px;
    text-align: center;
    font-size: 12px;
    color: rgba(70, 71, 71, 0.7);
}

.legal-links a {
    color: rgba(1, 31, 49, 0.7);
    text-decoration: none;
    transition: 0.2s ease;
}

.legal-links a:hover {
    color: #027db1;
    text-decoration: underline;
}

.legal-links span {
    margin: 0 8px;
    opacity: 0.5;
}


.signup-layout {
    display: flex;
    gap: 30px;
}

/* RIGHT FORM */
.signup-box {
    flex: 1;
}

/* Signup card */

.signup-box {
    width: 850px;
    background: rgba(228, 241, 248, 0.95);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.signup-box .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3748;
}

.signup-box .form-group input,
.signup-box .form-group textarea {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #c1c3c4;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.signup-box .form-group select {
    width: 100%;
    padding: 2px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #d0d7e2;
}

.signup-box input,
.signup-box textarea,
.signup-box select {
    font-size: 12px;
}

/* Input focus */
.signup-box .form-group input:focus {
    outline: none;
    border-color: #34768c;
    box-shadow: 0 0 6px rgba(52, 118, 140, 0.25);
}

.signup-box .form-group textarea:focus {
    outline: none;
    border-color: #34768c;
    box-shadow: 0 0 6px rgba(52, 118, 140, 0.25);
}

.signup-box .form-group label::after {
    content: " *";
    color: #e11d48;
    font-weight: 600;
}

.input-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

/* ---------- Professional Select Styling ---------- */

.signup-box .form-group select {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #d0d7e2;
    background-color: #ffffff;
    color: #2d3a4b;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23576c84' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6 6 6-6' stroke='%23576c84' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Hover */
.signup-box .form-group select:hover {
    border-color: #9fb3c8;
}

/* Focus */
.signup-box .form-group select:focus {
    outline: none;
    border-color: #34768c;
    box-shadow: 0 0 6px rgba(52, 118, 140, 0.25);
}

.other-input {
    margin-top: 2px;
}

#research_domain,
#research_subdomain {
    margin-top: 4px;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;

}

.form-section {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 5px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    /* back left, button right */
    align-items: center;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #027792;
    margin-top: 2px;
    text-align: center;

}

/* Lab Info form grid */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 3px;
    /* 🔥 reduce vertical spacing */
    column-gap: 20px;

}

/* Address takes full width */
.full-width {
    grid-column: span 2;
}

/* Signup button */
.signup-box .signup-btn {
    font-family: inherit;
    display: inline-block;
    width: auto;    
    padding: 8px;   

    background: #02ac2c;
    color: white;

    border: none;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.2s ease;

    margin-top: 5px;
}


.signup-box .signup-btn:hover {
    background: #016f1d;
    transform: translateY(-1px);
}

.signup-box .signup-btn:disabled {
    background: #9ca3af;
    /* grey */
    cursor: not-allowed;
    opacity: 0.7;
}

.signup-box .signup-btn:disabled:hover {
    background: #9ca3af;
}

.field-error {
    color: #d93025;
    font-size: 13px;
    margin-top: 6px;
    margin-left: 4px;
}

.field-success {
    color: #198754;
    font-size: 13px;
    margin-top: 6px;
    margin-left: 4px;
}

.username-hint {
    display: block;
    margin-top: 2px;
    margin-left: 4px;
    font-size: 10px;
    color: #7a8d95;
    line-height: 1.2;
}

.username-hint::before {
    content: "ⓘ ";
    font-size: 10px;
    color: #34768c;
    font-weight: 600;
}

.signup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #9aa7ad;
}

.step-number {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d6dde3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: white;
}

.step-label {
    margin-top: 2px;
    font-size: 12px;
}

.step.active .step-number {
    background: #34768c;
    border-color: #34768c;
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #d6dde3;
    margin: 0 10px;
}

/* --- otp box ----- */

/* OTP BOX */
.otp-box {
    margin-top: 10px;
    padding: 5px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
}

/* TITLE */
.otp-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.2px;
}

/* INPUT */
.otp-input {
    width: 220px;
    padding: 8px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* BUTTON */
.otp-btn {
    width: 250px !important;
}

/* RESEND */
.resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    background: #f8fafc;
    border: 1px solid #d6dde3;
    border-radius: 6px;

    color: #34768c;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;
    transition: all .2s ease;
}

.resend-btn:hover {
    background: #eef6f9;
    border-color: #34768c;
    color: #25586a;
}

.resend-btn:disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.8;
}

/* TIMER */
.otp-timer {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
    font-weight: 500;
}

#countdown {
    color: #dc2626;
    font-weight: 700;
}

/* ------- Cancel in signup step1--- */
.cancel-form {
    text-align: left;
    margin-top: 12px;
}

.cancel-signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: #f8fafc;
    border: 1px solid #d6dde3;
    border-radius: 6px;

    padding: 6px 12px;

    color: #475569;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;
    transition: all .2s ease;
}

.cancel-signup-btn:hover {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: translateY(-1px);
}

/* Workspace selection */

.workspace-select {
    margin: 20px 0;
}

.workspace-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34768c;
}

.workspace-options {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    /* prevent wrapping */
}

.workspace-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    border: 1px solid #d6e3db;
    border-radius: 10px;
    padding: 18px 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: white;
    min-height: 100px;
}

.workspace-card input {
    display: none;
}

.workspace-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.workspace-content i {
    width: 28px;
    height: 28px;
    color: #34768c;
    margin-bottom: 5px;
}

.workspace-content h4 {
    margin: 5px 0;
    font-size: 15px;
}

.workspace-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.workspace-users {
    font-size: 12px;
    color: #34768c;
    font-weight: 600;
}

/* selected */

.workspace-card:has(input:checked) {
    border: 2px solid #01b133;
    background: #f4f9fb;
}

.workspace-card:hover {
    border-color: #01a411;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ===== back buttin ===== */
.back-btn {
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #d6dde3;
    border-radius: 5px;
    color: #061c3a;
    font-size: 14px;
    background: #f9fafb;
    transition: all .2s ease;
}

.back-btn:hover {
    background: #eef2f7;
}

/* ======= signup form  */
.form-success {
    background: #e6f4ea;
    color: #1b5e20;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* 🔴 ERROR MESSAGE (ADD THIS) */
.form-error {
    background: #fdecea;
    color: #b71c1c;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
}

.form-error::before {
    content: "⚠ ";
}

.form-success::before {
    content: "✔ ";
}



/* ==== terms and conditions==== */
.terms-box {
    margin-top: 5px;
    width: 100%;
    grid-column: span 2;
    /* 🔥 FIX */
}

.terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.terms-row label {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.terms-row a {
    color: #317a95;
    text-decoration: none;
}

.terms-row a:hover {
    text-decoration: underline;
}

/* === TURNStile message box ==== */

.turnstile-box{
    margin:12px 0;
    display:flex;
    justify-content:center;
}

.turnstile-box .cf-turnstile{
    transform:scale(0.82);
    transform-origin:center;
}

/* ==== LOADER ====== */
.spinner{
    width:16px;
    height:16px;
    margin-right:8px;

    display:inline-block;

    border:2px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;

    animation:spin .8s linear infinite;

    vertical-align:middle;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ========================================= */

@media (max-width:900px) {

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

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

    .full-width {
        grid-column: span 1;
    }

}

@media (max-width: 900px) {
    .signup-layout {
        flex-direction: column;
    }

    .signup-info-panel {
        width: 100%;
    }
}