/* =============================================
   SIGNUP PAGE — Brand Identity Redesign
   Primary: Deep Teal #0E534A
   Secondary: Jungle Green #1B6A59
   Accent: Mango Gold #F2A93B
   Highlight: Papaya Orange #E07A2F
   Neutral: Sage Mist #B7C7A3
   Background: Warm White #F7F5EF
   Text: #12312D
   ============================================= */

:root {
    --clr-primary: #0E534A;
    --clr-secondary: #1B6A59;
    --clr-accent: #F2A93B;
    --clr-highlight: #E07A2F;
    --clr-neutral: #B7C7A3;
    --clr-bg: #F7F5EF;
    --clr-text: #12312D;
    --clr-muted: #6b7280;
    --clr-border: #d1d5db;
    --font-main: '29LT Bukra', 'Cairo', sans-serif !important;
}

body * {
    font-family: var(--font-main);
}

/* ---- Navbar stays visible & fixed — push content down ---- */
body {
    background: var(--clr-bg) !important;
}

/* ===================== WRAPPER ===================== */
.signup-page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    direction: rtl;
    font-family: var(--font-main);
    background: var(--clr-bg);
    overflow-x: hidden;
    padding-top: 80px;
    /* clears the fixed navbar */
}

/* ===================== LEFT: FORM SIDE ===================== */
.signup-form-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 50px 50px 40px;
    background: var(--clr-bg);
    overflow-y: auto;
}

/* ---- Page Heading ---- */
.signup-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.signup-heading h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-text);
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.signup-heading h1 .su-title-icon {
    color: var(--clr-accent);
    font-style: normal;
}

.signup-subtitle {
    color: var(--clr-muted);
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.7;
}

.signup-existing-link {
    font-size: 0.95rem;
    color: var(--clr-muted);
    margin-bottom: 22px;
    direction: rtl;
}

.signup-existing-link a {
    color: var(--clr-accent);
    font-weight: 700;
    text-decoration: none;
}

.signup-existing-link a:hover {
    color: var(--clr-highlight);
    text-decoration: underline;
}

/* ===================== FORM GRID ===================== */
.signup-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.signup-form-grid .col-full {
    grid-column: 1 / -1;
}

/* ===================== FORM GROUP (floating label + underline) ===================== */
.su-fg {
    position: relative;
}

.su-fg input,
.su-fg select {
    width: 100%;
    border: none;
    border-bottom: 1.8px solid var(--clr-border);
    background: transparent;
    padding: 20px 30px 6px 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--clr-text);
    outline: none;
    transition: border-color 0.28s ease;
    direction: rtl;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.su-fg input:focus,
.su-fg select:focus {
    border-bottom-color: var(--clr-primary);
}

/* Floating label */
.su-fg label {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--clr-muted);
    pointer-events: none;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    direction: rtl;
}

.su-fg input:focus~label,
.su-fg input:not(:placeholder-shown)~label,
.su-fg select:focus~label,
.su-fg select.has-val~label {
    top: 5px;
    transform: none;
    font-size: 0.8rem;
    color: var(--clr-primary);
}

/* Icon */
.su-fg .su-ico {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    color: var(--clr-secondary);
    pointer-events: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
}

/* Select arrow */
.su-sel-wrap {
    position: relative;
}

.su-sel-wrap::after {
    content: '▾';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-muted);
    pointer-events: none;
    font-size: 0.75rem;
}

/* Animated underline */
.su-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: width 0.28s ease;
}

.su-fg input:focus~.su-bar,
.su-fg select:focus~.su-bar {
    width: 100%;
}

/* ===================== FILE UPLOAD ===================== */
.su-file-group {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.8px solid var(--clr-border);
    padding: 10px 0 8px;
    direction: rtl;
}

.su-file-group label.su-file-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clr-primary);
    color: #fff;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.su-file-group label.su-file-label:hover {
    background: var(--clr-secondary);
}

.su-file-group input[type="file"] {
    display: none;
}

.su-file-group .su-file-placeholder {
    flex: 1;
    color: var(--clr-muted);
    font-size: 0.95rem;
    text-align: right;
    direction: rtl;
}

/* ===================== BUTTONS ===================== */
.su-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.su-btn-primary {
    padding: 12px 52px;
    background: var(--clr-primary);
    color: #fff;
    border: 2px solid var(--clr-primary);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.28s ease;
    letter-spacing: 0.3px;
    min-width: 180px;
}

.su-btn-primary:hover {
    background: transparent;
    color: var(--clr-primary);
}

.su-btn-secondary {
    padding: 10px 28px;
    background: var(--clr-secondary);
    color: #fff;
    border: 2px solid var(--clr-secondary);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.28s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.su-btn-secondary:hover {
    background: transparent;
    color: var(--clr-secondary);
}

.su-bottom-link {
    font-size: 0.95rem;
    color: var(--clr-muted);
    direction: rtl;
    text-align: center;
}

.su-bottom-link a {
    color: var(--clr-accent);
    font-weight: 700;
    text-decoration: none;
}

.su-bottom-link a:hover {
    color: var(--clr-highlight);
    text-decoration: underline;
}

/* ===================== RIGHT: IMAGE SIDE ===================== */
.signup-image-side {
    width: 42%;
    min-height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.signup-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .signup-image-side {
        width: 38%;
    }

    .signup-form-side {
        padding: 36px 36px 40px 28px;
    }
}

@media (max-width: 820px) {
    .signup-page-wrapper {
        flex-direction: column;
    }

    .signup-image-side {
        width: 100%;
        min-height: 240px;
        max-height: 300px;
    }

    .signup-form-side {
        padding: 32px 20px 40px;
    }

    .signup-form-grid {
        grid-template-columns: 1fr;
    }

    .signup-form-grid .col-full {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .signup-form-side {
        padding: 24px 14px 36px;
    }

    .signup-heading h1 {
        font-size: 1.25rem;
    }

    .su-btn-primary {
        width: 100%;
    }
}