/* ── EduAttend Login Page Styles ── */

.eduatt-login-wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
}

.eduatt-login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 36px 36px;
}

/* Brand */
.eduatt-login-brand {
    text-align: center;
    margin-bottom: 28px;
}
.eduatt-login-logo {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 10px;
}
.eduatt-login-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 8px;
}
.eduatt-login-sitename {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
}
.eduatt-login-tagline {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Alerts */
.eduatt-login-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}
.eduatt-login-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.eduatt-login-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

/* Form */
.eduatt-login-form .eduatt-field {
    margin-bottom: 16px;
}
.eduatt-login-form .eduatt-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.eduatt-login-form .eduatt-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1a202c;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.eduatt-login-form .eduatt-field input:focus {
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
    outline: none;
    background: #fff;
}

/* Password toggle */
.eduatt-pwd-wrap {
    position: relative;
}
.eduatt-pwd-wrap input {
    padding-right: 44px;
}
.eduatt-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    color: #64748b;
}
.eduatt-toggle-pwd:hover { color: #185FA5; }

/* Remember + Forgot */
.eduatt-login-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #374151;
}
.eduatt-login-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.eduatt-forgot-link {
    color: #185FA5;
    text-decoration: none;
    font-size: 13px;
}
.eduatt-forgot-link:hover { text-decoration: underline; }

/* Login button */
.eduatt-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}
.eduatt-btn-login {
    padding: 12px;
    font-size: 15px;
    letter-spacing: 0.2px;
}

/* Description text */
.eaf-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Admin Frontend Panel ── */
.eduatt-admin-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tabs */
.eaf-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.eaf-tab {
    padding: 10px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px 6px 0 0;
    transition: background .15s, color .15s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.eaf-tab:hover { background: #f1f5f9; color: #1a202c; }
.eaf-tab.active { color: #185FA5; border-bottom-color: #185FA5; background: #eff6ff; }

/* Stats grid */
.eaf-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.eaf-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.eaf-stat-card.eaf-stat-accent { background: #185FA5; color: #fff; border-color: #185FA5; }
.eaf-stat-num { font-size: 32px; font-weight: 700; color: #1a202c; }
.eaf-stat-accent .eaf-stat-num { color: #fff; }
.eaf-stat-label { font-size: 12px; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.eaf-stat-accent .eaf-stat-label { color: rgba(255,255,255,.8); }

/* Tables */
.eaf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.eaf-table th {
    background: #f8fafc;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}
.eaf-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1a202c;
}
.eaf-table tr:hover td { background: #f8fafc; }
.eaf-table code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* Toolbar */
.eaf-toolbar {
    margin-bottom: 16px;
}

/* Form grid */
.eaf-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.eaf-form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.eaf-form-msg {
    font-size: 13px;
    font-weight: 500;
}
.eaf-form-msg.success { color: #166534; }
.eaf-form-msg.error   { color: #b91c1c; }

/* Loading */
.eaf-loading-msg {
    color: #94a3b8;
    padding: 20px 0;
    font-size: 14px;
}

/* Settings notice */
.eaf-settings-notice {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}
.eaf-settings-notice.success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.eaf-settings-notice.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Notice (access denied) */
.eduatt-notice {
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px 20px;
    color: #78350f;
    font-size: 14px;
}

/* Action buttons in table */
.eaf-btn-sm {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    margin-right: 4px;
    text-decoration: none;
    transition: background .15s;
}
.eaf-btn-sm:hover { background: #f1f5f9; }
.eaf-btn-sm.danger { color: #b91c1c; border-color: #fca5a5; }
.eaf-btn-sm.danger:hover { background: #fef2f2; }

/* Expired badge */
.eaf-badge-expired { color: #b91c1c; font-size: 12px; }
.eaf-badge-active  { color: #166534; font-size: 12px; font-weight: 600; }

@media (max-width: 600px) {
    .eduatt-login-box { padding: 28px 20px 24px; }
    .eaf-tabs { gap: 2px; }
    .eaf-tab { padding: 8px 12px; font-size: 13px; }
    .eaf-stats-grid { grid-template-columns: 1fr 1fr; }
}
