/* =========================================================
   MedicalPro — Association Registration Page
   ========================================================= */

/* ================= VARIABLES ================= */
:root {
    --main-bg: #F5F5F0;
    --teal: #3DBDB5;
    --blue: #4A7EC7;
    --cta: linear-gradient(135deg, #3DBDB5, #4A7EC7);
    --navy: #0B1826;
    --card-bg: #F6F9FB;
    --border: #E2EAF0;
    --text-primary: #0B1826;
    --text-secondary: #3D5166;
    --text-muted: #6B8099;
    --success: #27AE60;
    --warning: #F39C12;
    --error: #E74C3C;
    --radius-card: 10px;
    --radius-btn: 6px;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ================= RESET ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: #E8E8E2 !important;
    color: var(--text-primary);
}

/* Kill ALL background images from theme */
body,
#layoutAuthentication,
.reg-page-wrap,
[class*="gbsfd"] {
    background-image: none !important;
}

/* ================= LAYOUT ================= */
.reg-page-wrap {
    display: flex;
    min-height: 100vh;
}

/* ================= LEFT PANEL ================= */
.reg-left {
    width: 360px;
    min-width: 320px;
    background: linear-gradient(180deg, #062a3a, #041e2c);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    width: 150px;
    margin-bottom: 30px;
}

.reg-left-headline {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.reg-left-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.reg-left-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reg-left-feature {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reg-left-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(61, 189, 181, 0.2);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.reg-left-feature-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.reg-left-footer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* ================= RIGHT PANEL ================= */
.reg-right {
    flex: 1;
    background: var(--main-bg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ================= PAGE HEADER ================= */
.reg-page-header {
    padding: 24px 28px 0;
}

.reg-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.reg-page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--navy);
    line-height: 1.2;
}

.reg-page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* ================= CONTENT AREA ================= */
.reg-content-area {
    padding: 16px 28px 32px;
    flex: 1;
}

.reg-form-container {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ================= SETTINGS CARD ================= */
.settings-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.settings-card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.settings-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.settings-card-body {
    padding: 20px;
}

/* ================= FORM ELEMENTS ================= */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.form-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
}

.form-input:focus {
    border-color: var(--teal);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B8099' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ================= PASSWORD WRAPPER ================= */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 40px;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    font-size: 16px;
    line-height: 1;
    user-select: none;
}

.toggle-eye:hover {
    color: var(--text-primary);
}

/* Remove browser default password eye */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Remove number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ================= STRENGTH BAR ================= */
.reg-strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.reg-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.4s ease, background 0.3s ease;
}

.reg-strength-fill.weak {
    width: 30%;
    background: var(--error);
}

.reg-strength-fill.medium {
    width: 65%;
    background: var(--warning);
}

.reg-strength-fill.strong {
    width: 100%;
    background: var(--success);
}

#passwordStrengthLabel {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Password mismatch hint */
.pw-mismatch-hint {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ================= CHECKBOX / TERMS ================= */
.reg-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.reg-terms-label input[type="checkbox"] {
    accent-color: var(--teal);
    margin-top: 2px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ================= SUBMIT BUTTON ================= */
.btn-register-submit {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.15s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--cta);
    color: #fff;
}

.btn-register-submit:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-register-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ================= TEAL LINK ================= */
.teal-link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}

.teal-link:hover {
    color: #30a9a1;
}

/* ================= SWAL OVERRIDES ================= */
.swal-branded {
    border-radius: 16px !important;
    padding: 32px !important;
    border-left: 5px solid var(--teal) !important;
    max-width: 480px !important;
}

.swal-branded .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

.swal-branded .swal2-actions {
    justify-content: flex-start !important;
    padding: 0 8px !important;
    margin-top: 8px !important;
    gap: 8px;
}

.swal-branded .swal2-confirm {
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 28px !important;
    background: var(--teal) !important;
    border: none !important;
    box-shadow: none !important;
}

.swal-branded .swal2-confirm:hover {
    background: #2a9d96 !important;
}

.swal-branded-link {
    background: transparent !important;
    color: var(--teal) !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
}

.swal-branded-link:hover {
    color: #2a9d96 !important;
}

.swal-branded .swal2-close {
    font-size: 24px;
    color: var(--text-muted);
    top: 16px;
    right: 16px;
}

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

/* Tablet — hide left panel */
@media (max-width: 900px) {
    .reg-left {
        display: none;
    }

    .reg-right {
        width: 100%;
    }

    .reg-content-area {
        padding: 16px;
    }

    .reg-page-header {
        padding: 16px 16px 0;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        background: var(--main-bg) !important;
    }

    .reg-page-title {
        font-size: 22px;
    }

    .reg-content-area {
        padding: 12px;
    }

    .reg-page-header {
        padding: 12px 12px 0;
    }

    .settings-card-body {
        padding: 16px;
    }

    .form-input {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .reg-page-title {
        font-size: 20px;
    }

    .reg-content-area {
        padding: 8px;
    }
}
