/* ==========================================================================
   Login/Register Page - Modern Design
   Matches site design system: navy #1e3a5f, orange #f97316
   ========================================================================== */

/* Section background */
.login-section {
    background-color: #f3f4f6;
    padding: 40px 0 60px;
    min-height: 60vh;
}

/* Main card */
.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Panel padding */
.login-panel {
    padding: 35px 30px;
}

/* Section titles */
.login-card .section-title {
    color: #1e3a5f;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-card .section-title .lnr {
    font-size: 20px;
    color: #f97316;
}

.login-card .section-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Vertical divider on desktop */
.login-divider {
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 991px) {
    .login-divider {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* ---- Override base .ho-form styles inside login-card ---- */

.login-card .ho-form {
    padding: 0;
    border: none;
    border-radius: 0;
}

.login-card .ho-form.ho-form-boxed {
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Labels */
.login-card .ho-form-inner .single-input label {
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

/* Inputs */
.login-card .ho-form-inner .single-input input[type="text"],
.login-card .ho-form-inner .single-input input[type="email"],
.login-card .ho-form-inner .single-input input[type="password"],
.login-card .ho-form-inner .single-input input[type="number"],
.login-card .ho-form-inner .single-input select,
.login-card .ho-form-inner .single-input textarea {
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    background: #fff;
}

.login-card .ho-form-inner .single-input input:focus,
.login-card .ho-form-inner .single-input select:focus,
.login-card .ho-form-inner .single-input textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    outline: none;
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.login-card .input-with-icon {
    padding-left: 40px !important;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    line-height: 1;
    z-index: 1;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #f97316;
}

.password-toggle.active {
    color: #f97316;
}

/* ---- Buttons ---- */

.btn-login-primary,
.btn-register-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    letter-spacing: 0.3px;
}

.btn-login-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}

.btn-login-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
}

.btn-register-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    box-shadow: 0 3px 10px rgba(30, 58, 95, 0.3);
}

.btn-register-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.4);
    transform: translateY(-1px);
}

.btn-login-primary .lnr,
.btn-register-primary .lnr {
    font-size: 14px;
}

/* ---- Login extras: remember me + forgot ---- */

.login-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me label {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: auto !important;
    accent-color: #f97316;
}

.forgot-link {
    color: #f97316;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
}

.forgot-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* ---- Privacy checkbox ---- */

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.privacy-check input[type="checkbox"] {
    width: auto !important;
    margin-top: 3px;
    accent-color: #f97316;
}

.privacy-check label {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
    display: inline !important;
    cursor: pointer;
}

.privacy-link {
    color: #f97316 !important;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* ---- Field errors ---- */

.field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    font-style: normal;
}

.field-error .lnr {
    font-size: 12px;
}

/* ---- Captcha ---- */

.captcha-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
    .login-section {
        padding: 20px 0 40px;
    }

    .login-panel {
        padding: 25px 20px;
    }

    .login-card .section-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .login-section {
        padding: 15px 0 30px;
    }

    .login-panel {
        padding: 20px 15px;
    }

    .login-card {
        border-radius: 8px;
        margin: 0 -5px;
    }

    /* Half inputs go full-width on mobile */
    .login-card .ho-form-inner .single-input.single-input-half {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .login-extras {
        flex-direction: column;
        align-items: flex-start;
    }
}
