/**
 * EISO Certificate Manager - Public Frontend Stylesheet
 * Scoped to avoid theme conflicts
 */

.eiso-verify-wrapper {
    max-width: 750px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.eiso-verify-wrapper *,
.eiso-verify-wrapper *::before,
.eiso-verify-wrapper *::after {
    box-sizing: inherit;
}

.eiso-search-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.eiso-search-card h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.eiso-search-card p.eiso-desc {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.eiso-search-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 580px;
    margin: 0 auto;
}

@media (max-width: 580px) {
    .eiso-search-form {
        flex-direction: column;
    }
}

.eiso-search-form input[type="text"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.eiso-search-form input[type="text"]:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.eiso-search-form button {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.eiso-search-form button:hover {
    background: #1d4ed8;
}

.eiso-search-form button:active {
    transform: scale(0.98);
}

/* Result Container */
.eiso-result-container {
    margin-top: 25px;
}

.eiso-not-found-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.eiso-not-found-card h3 {
    margin: 0 0 8px 0;
    color: #991b1b;
    font-size: 18px;
    font-weight: 700;
}

.eiso-not-found-card p {
    margin: 0;
    color: #7f1d1d;
    font-size: 14px;
}

/* Verified Result Card */
.eiso-verified-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.eiso-verified-header {
    background: #0f172a;
    color: #ffffff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eiso-verified-header .eiso-check-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.eiso-verified-header .eiso-check-icon {
    width: 28px;
    height: 28px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* Public Badges */
.eiso-pub-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.eiso-pub-badge-active { background: #dcfce7; color: #15803d; }
.eiso-pub-badge-expiring_soon { background: #fef9c3; color: #a16207; }
.eiso-pub-badge-expired { background: #fee2e2; color: #b91c1c; }
.eiso-pub-badge-suspended { background: #f1f5f9; color: #475569; }
.eiso-pub-badge-cancelled { background: #e2e8f0; color: #334155; }

.eiso-verified-body {
    padding: 30px 25px;
}

.eiso-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .eiso-info-grid {
        grid-template-columns: 1fr;
    }
}

.eiso-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eiso-info-item.full {
    grid-column: 1 / -1;
}

.eiso-info-item .lbl {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.eiso-info-item .val {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.eiso-verified-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.eiso-footer-content {
    flex: 1;
    min-width: 200px;
}

.eiso-footer-text {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

.eiso-qr-pub {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eiso-qr-pub img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.eiso-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s;
}

.eiso-btn-pdf:hover {
    background: #b91c1c;
    color: #ffffff;
}

.eiso-loader {
    display: none;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: eiso-spin 1s linear infinite;
}

@keyframes eiso-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   FRONTEND STAFF LOGIN SYSTEM STYLES (SCOPED)
   ========================================================================== */

.eiso-login-wrap {
    max-width: 440px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

.eiso-login-wrap *,
.eiso-login-wrap *::before,
.eiso-login-wrap *::after {
    box-sizing: inherit;
}

.eiso-login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.eiso-logged-in-box {
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

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

.eiso-login-logo {
    max-height: 64px;
    width: auto;
    margin-bottom: 12px;
}

.eiso-login-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.eiso-login-header h2,
.eiso-login-header h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.eiso-login-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.eiso-login-notices {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

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

.eiso-notice-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.eiso-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.eiso-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.eiso-input-group input[type="text"],
.eiso-input-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.eiso-input-group input[type="text"]:focus,
.eiso-input-group input[type="password"]:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.eiso-password-toggle {
    position: absolute;
    right: 12px;
    top: 34px;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.eiso-password-toggle:hover {
    opacity: 1;
}

.eiso-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.eiso-remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    cursor: pointer;
}

.eiso-forgot-link,
.eiso-back-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.eiso-forgot-link:hover,
.eiso-back-link:hover {
    text-decoration: underline;
}

.eiso-forgot-desc {
    font-size: 13px;
    color: #475569;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.eiso-btn-submit,
.eiso-btn-primary {
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: #0284c7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.eiso-btn-submit:hover,
.eiso-btn-primary:hover {
    background: #0369a1;
    color: #ffffff;
}

.eiso-btn-submit:active,
.eiso-btn-primary:active {
    transform: scale(0.99);
}

.eiso-btn-secondary {
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.eiso-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}
