.auth-modal .modal-dialog {
    max-width: 440px;
    margin: 1.75rem auto;
}
.auth-modal .modal-content {
    max-height: 90vh;
}
.auth-modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--light-bg);
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.auth-modal-close:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

.auth-modal-body {
    padding: 44px 40px 36px;
    text-align: center;
    overflow-y: auto;
    max-height: 90vh;
}
.auth-modal-icon {
    width: 60px;
    height: 60px;
    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.35);
}
.auth-modal-icon i {
    color: #fff;
    font-size: 1.5rem;
}
.auth-modal-body .section-tag {
    display: inline-flex;
    margin-bottom: 14px;
}
.auth-modal-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 4px;
}
.auth-modal-subtitle {
    font-family: "DM Sans", sans-serif;
    color: var(--secondary-text);
    font-size: 0.88rem;
    margin-bottom: 26px;
}

.auth-modal-body form {
    text-align: left;
}

.auth-form-group {
    margin-bottom: 16px;
}
.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-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;
}
.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.88rem;
    font-family: "DM Sans", sans-serif;
    transition: all 0.2s ease;
}
.auth-input-wrap .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}
.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;
}
.auth-input-wrap .toggle-password:hover {
    color: var(--primary);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 8px;
}
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--dark-text);
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
}
.auth-remember input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.auth-forgot {
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    transition: color 0.2s ease;
}
.auth-forgot:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---- Login Submit Button — polished ---- */
.btn-auth-submit {
    width: 100%;
    padding: 0.75rem;
    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;
    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.85rem;
    color: var(--secondary-text);
    font-family: "DM Sans", sans-serif;
    margin: 0;
}
.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 — TABLET
   ============================================ */
@media (max-width: 991px) {
    .auth-modal .modal-dialog {
        max-width: 92%;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 575px) {
    .auth-modal .modal-dialog {
        max-width: 100%;
        margin: 0.75rem;
    }
    .auth-modal-content {
        border-radius: var(--radius-lg);
    }
    .auth-modal-body {
        padding: 36px 22px 26px;
    }
    .auth-modal-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
    .auth-modal-icon i {
        font-size: 1.3rem;
    }
    .auth-modal-title {
        font-size: 1.3rem;
    }
    .auth-modal-subtitle {
        font-size: 0.82rem;
        margin-bottom: 22px;
    }
    .auth-form-group {
        margin-bottom: 14px;
    }
    .auth-input-wrap .form-control {
        font-size: 0.85rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .auth-options {
        margin-bottom: 18px;
    }
    .auth-remember,
    .auth-forgot {
        font-size: 0.78rem;
    }
    .btn-auth-submit {
        font-size: 0.88rem;
        padding: 0.7rem;
    }
    .auth-switch-text {
        font-size: 0.8rem;
    }
    .btn-nav-login {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .auth-modal-body {
        padding: 30px 16px 22px;
    }
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
