/* ============================================
   REGISTER PAGE — WIDER, BREATHING ROOM
   ============================================ */
.auth-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 50px 0;
    background: var(--light-bg);
}

.section-tag {
    display: inline-flex !important;
}

.auth-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1.5px solid var(--border-light);
    max-width: 760px;
    margin: 0 auto;
}

.auth-form-side {
    padding: 46px 56px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.auth-form-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 22px rgba(24, 95, 165, 0.3);
}
.auth-form-icon i {
    color: #fff;
    font-size: 1.4rem;
}

.auth-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--dark-text);
    margin-bottom: 6px;
}
.auth-subtitle {
    font-family: "DM Sans", sans-serif;
    color: var(--secondary-text);
    font-size: 0.87rem;
    margin-bottom: 28px;
}

.auth-form-side form {
    text-align: left;
}

/* Rows get proper breathing room between them */
.auth-form-side form .row {
    margin-bottom: 4px;
}
.auth-form-side form .row.g-2 {
    --bs-gutter-x: 1rem;
}

.auth-form-group {
    margin-bottom: 18px;
}
.auth-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 6px;
    display: block;
    font-family: "Poppins", sans-serif;
}
.auth-form-group label .text-danger {
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}
.auth-input-wrap i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}
.auth-input-wrap .form-control {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-family: "DM Sans", sans-serif;
    transition: all 0.2s ease;
    width: 100%;
}
.auth-input-wrap .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
    outline: none;
}

/* Select fields need extra right padding for native arrow + left padding for icon */
.auth-input-wrap select.form-control {
    padding-left: 40px;
    padding-right: 34px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b7d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.auth-input-wrap .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    z-index: 2;
}
.auth-input-wrap .toggle-password:hover {
    color: var(--primary);
}

/* Helper text under fields */
.auth-form-group .text-muted {
    font-size: 0.72rem !important;
    color: var(--secondary-text) !important;
    margin-top: 5px;
    line-height: 1.4;
}
.auth-form-group .text-danger {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
}

.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.password-strength span {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: var(--border-light);
    transition: background 0.3s ease;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--secondary-text);
    font-family: "DM Sans", sans-serif;
    margin-top: 6px;
    margin-bottom: 22px;
    text-align: left;
}
.auth-terms input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.auth-terms a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-terms a:hover {
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    padding: 0.78rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.93rem;
    font-family: "DM Sans", sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(24, 95, 165, 0.3);
}
.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(24, 95, 165, 0.4);
    color: #fff;
}
.btn-auth-submit:active {
    transform: translateY(0);
}

.auth-switch-text {
    text-align: center;
    font-size: 0.88rem;
    color: var(--secondary-text);
    font-family: "DM Sans", sans-serif;
    margin-top: 22px;
}
.auth-switch-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.auth-switch-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .auth-wrapper {
        max-width: 640px;
    }
    .auth-form-side {
        padding: 40px 40px;
    }
}

@media (max-width: 767px) {
    .auth-wrapper {
        max-width: 500px;
    }
    .auth-form-side {
        padding: 38px 32px;
    }
    /* stack the two-column rows on tablets/mobile for breathing room */
    .auth-form-side form .row.g-2 > [class*="col-"] {
        margin-bottom: 4px;
    }
}

@media (max-width: 575px) {
    .auth-section {
        padding: 24px 0;
    }
    .auth-wrapper {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    .auth-form-side {
        padding: 30px 20px;
    }
    .auth-form-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 14px;
    }
    .auth-form-icon i {
        font-size: 1.2rem;
    }
    .auth-title {
        font-size: 1.3rem;
    }
    .auth-subtitle {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    .auth-form-group {
        margin-bottom: 14px;
    }
    .auth-input-wrap .form-control {
        font-size: 0.84rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .auth-terms {
        font-size: 0.75rem;
    }
    .btn-auth-submit {
        font-size: 0.87rem;
        padding: 0.7rem;
    }
    .auth-switch-text {
        font-size: 0.82rem;
    }

    /* on small phones, force two-column rows into single column */
    .auth-form-side form .row.g-2 {
        row-gap: 0 !important;
    }
    .auth-form-side form .row.g-2 > .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 360px) {
    .auth-form-side {
        padding: 24px 14px;
    }
}