/* ------------------------------
   Saved-jobs
   ------------------------------ */



/* Updated Saved Jobs Page Styles */
.saved-jobs-page {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.saved-jobs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.saved-jobs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.saved-jobs-header h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Saved Jobs List */
.saved-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.saved-job-card {
    padding: 30px;
    border-radius: 30px;
    border: 2px solid #EEF4FC;
    background: #FFF;
    margin-bottom: 20px !important;
    transition: all 0.3s ease;
}
.saved-job-card:hover {
    border-color: #285A9D;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.saved-job-card:hover a {
    border-color: #285A9D;
}

.saved-job-info {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
	align-items:center;
}

.saved-job-title {
    margin: 0;
}

.saved-job-title a {
    color: #000;
    font-size: 26px;
    font-weight: 700;
    line-height: 28px;
}

.saved-job-card:hover .saved-job-title a {
    color:#285A9D;
}

.saved-job-meta {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
	flex-wrap:wrap;
    gap: 0.5rem;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px; 
}
.job-meta-item.location {
    font-weight: 500;
}

.job-meta-item.job-type {
    font-weight: 400;
}

/* Actions */
.saved-job-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.saved-job-actions .unsave-job-btn {
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: 0 !important;
    box-shadow: none;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.saved-job-actions .unsave-job-btn:hover,.saved-job-actions .unsave-job-btn:focus {
    color: #285A9D;
    background: transparent;
}

.saved-job-actions .unsave-job-btn svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24; /* Yellow star */
}

.view-job-arrow {
    transition: all 0.2s ease;
}

.view-job-arrow:hover {
    transform: translateX(2px);
}


/* Empty States */
.no-saved-jobs,
.login-required {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.no-jobs-icon,
.login-icon {
    margin: 0 auto 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-saved-jobs h3,
.login-required h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.no-saved-jobs p,
.login-required p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.browse-jobs-btn,
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--e-global-color-accent, #3b82f6);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.browse-jobs-btn:hover,
.login-btn:hover {
    background: var(--e-global-color-accent-hover, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Loading and Success States */
.saved-job-card.removing {
    opacity: 0.5;
    pointer-events: none;
}

.unsave-job-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.unsave-job-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success message for unsaved jobs */
.job-unsaved-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.job-unsaved-message.show {
    transform: translateX(0);
}

@media (max-width: 1199px) {
    .saved-job-title a {
        font-size: 22px;
        line-height: 30px;
    }
}

/* ------------------------------
   Login Form Styles
   ------------------------------ */
.saved-jobs-login-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #1a1a1a;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.login-header p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Login Form */
.saved-jobs-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
}

.login-field label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-field input {
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    width: 100%;
}

.login-field input:focus {
    outline: none;
    border-color: var(--e-global-color-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-remember {
    display: flex;
    align-items: center;
}

.login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.login-submit {
    margin-top: 10px;
}

.login-submit input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: var(--e-global-color-accent, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-submit input[type="submit"]:hover {
    background: var(--e-global-color-accent-hover, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Login Links */
.login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-links a {
    color: var(--e-global-color-accent, #3b82f6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-links a:hover {
    color: var(--e-global-color-accent-hover, #2563eb);
    text-decoration: underline;
}

.login-links .divider {
    margin: 0 12px;
    color: #d1d5db;
}

/* Notice Messages */
.login-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.login-notice.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.login-notice.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Password Reset Form */
#saved-jobs-lostpassword-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#saved-jobs-lostpassword-form p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Registration Form Styles - Using addon plugin classes */
.saved-jobs-registration-form,
#sep-registration-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sep-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.sep-form-group label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.sep-form-group input[type="text"],
.sep-form-group input[type="email"],
.sep-form-group input[type="password"] {
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    width: 100%;
}

.sep-form-group input:focus {
    outline: none;
    border-color: var(--e-global-color-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sep-field-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

.sep-checkbox-group {
    flex-direction: row !important;
}

.sep-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.sep-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.sep-form-actions {
    margin-top: 10px;
}

.sep-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.sep-btn-primary {
    background: var(--e-global-color-accent, #3b82f6);
    color: white;
    width: 100%;
}

.sep-btn-primary:hover {
    background: var(--e-global-color-accent-hover, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Registration message */
#sep-registration-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.875rem;
    display: none;
}

#sep-registration-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#sep-registration-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* SEP Login Links */
.sep-login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sep-login-links a {
    color: #000;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sep-login-links a:hover {
    color: var(--e-global-color-accent, #3b82f6);
    text-decoration: underline;
}

.required {
    color: #ef4444;
}

/* Password hint */
.password-hint {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.password-hint p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Registration message */
#saved-jobs-registration-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.875rem;
    display: none;
}

#saved-jobs-registration-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#saved-jobs-registration-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .saved-jobs-login-wrapper {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
}