@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* === Base === */
body, input, button, textarea, select {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #232946;
    font-size: 1rem;
    background: #f7f8fa;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Container/Card === */
.container {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44,80,140,0.10), 0 1.5px 8px rgba(44,80,140,0.08);
    padding: 2.5em 2.3em 2em 2.3em;
    margin: 2.5em auto 0 auto;
    max-width: 480px;
}

/* === Headings === */
h1, h2, h3 {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #1d2769;
    font-weight: 700;
    margin-top: 0.4em;
    margin-bottom: 1em;
    letter-spacing: 0.01em;
}
h2 { font-size: 1.6em; }
h3 { font-size: 1.2em; }

/* === Forms === */
label {
    font-weight: 500;
    color: #232946;
    margin-bottom: 0.25em;
    display: block;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid #b8c6d9;
    border-radius: 7px;
    font-size: 1em;
    background: #fafdff;
    margin-bottom: 1.15em;
    transition: border 0.13s;
    box-sizing: border-box;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    outline: none;
}

textarea {
    min-height: 70px;
    resize: vertical;
}

/* === Buttons === */
button, input[type="submit"] {
    background: linear-gradient(90deg, #2347ba 60%, #4f8cff 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 13px 0;
    width: 100%;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 0.6em;
    margin-bottom: 0.6em;
    cursor: pointer;
    box-shadow: 0 2px 12px #b6d1ff24;
    transition: background 0.14s;
}
button:hover, input[type="submit"]:hover {
    background: linear-gradient(90deg,#193073 60%,#4f8cff 100%);
}

.sso-btn {
    display: block;
    width: 100%;
    font-size: 1.14em;
    padding: 19px 0;
    background: linear-gradient(90deg,#e0ecfc 0,#dbeafe 100%);
    color: #1d2769;
    font-weight: 700;
    border: 2px solid #3b82f6;
    border-radius: 14px;
    margin: 0 auto 2.2em auto;
    box-shadow: 0 2px 18px #b6d1ff22;
    cursor: pointer;
    text-align: center;
    transition: background 0.14s, border 0.13s, box-shadow 0.14s, color 0.14s;
    text-decoration: none;
}
.sso-btn:hover {
    background: linear-gradient(90deg,#dbeafe 0,#bae6fd 100%);
    border-color: #2563eb;
    color: #193073;
    box-shadow: 0 4px 24px #a5b4fc33;
}

/* === Navigation === */
.admin-nav {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: center;
    padding: 22px 0 18px 0;
    background: #eef2fb;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 2px 12px #bbc8e633;
    margin-bottom: 2.5em;
    position: relative;
}
.admin-nav a {
    color: #2347ba;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08em;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.18s, color 0.17s, box-shadow 0.13s;
    position: relative;
    display: inline-block;
}
.admin-nav a.active,
.admin-nav a:hover {
    background: #dbeafe;
    color: #111a3a;
    font-weight: bold;
    box-shadow: 0 2px 8px #b6d1ff38;
}
.admin-nav .nav-portal {
    background: #ede9fe;
    color: #7c3aed;
    font-weight: 700;
    margin-left: 2.5em;
    border-radius: 10px;
    border: 1.5px solid #e9d5ff;
}
.admin-nav .nav-portal:hover {
    background: #e0e7ff;
    color: #5b21b6;
    border-color: #c4b5fd;
}

/* === Table Styles === */
.admin-table, table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #f9fbfd;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.8em;
    font-size: 1em;
    box-shadow: 0 4px 16px #b8c6d911;
}
.admin-table th, .admin-table td, table th, table td {
    text-align: left;
    padding: 12px 14px;
}
.admin-table th, table th {
    background: #e6eaff;
    font-weight: 600;
    color: #193073;
    border-bottom: 2px solid #c7d3f7;
}
.admin-table tr:nth-child(even), table tr:nth-child(even) {
    background: #f2f6ff;
}
.admin-table tr.highlight, table tr.highlight {
    background: #dbeafe !important;
}
.admin-checkbox-col {
    text-align: center;
}
.admin-table tr:hover, table tr:hover {
    background: #e0eaff !important;
}

/* === Messages === */
.success-msg {
    color: #257a3e;
    background: #e8ffe8;
    border: 1px solid #b7efb7;
    padding: .8em 1.3em;
    border-radius: 10px;
    margin-bottom: 1.2em;
    font-size: 1.05em;
}
.error-msg {
    color: #b20e3a;
    background: #ffe3e7;
    border: 1px solid #ffb1c2;
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 1.3em;
    font-size: 1.1em;
}

/* === Misc Utility === */
.portal-welcome {
    font-size: 2em;
    font-weight: 700;
    color: #1e2a5c;
    margin-bottom: 0.5em;
}
.portal-profile-link {
    font-size: 1.11em;
    margin-right: 1.6em;
}
.admin-dashboard-btn, .approver-dashboard-btn {
    background: #f3e8ff;
    color: #7c3aed;
    border-radius: 7px;
    padding: 9px 20px;
    font-weight: 600;
    text-decoration: none;
    border: 1.3px solid #e9d5ff;
    transition: background 0.14s, color 0.14s;
    margin-right: 1.2em;
    display: inline-block;
    text-align: center;
}
.admin-dashboard-btn:hover, .approver-dashboard-btn:hover {
    background: #c7d2fe;
    color: #4c1d95;
    border-color: #a5b4fc;
}

a {
    color: #2347ba;
    text-decoration: underline;
    transition: color 0.15s;
}
a:hover {
    color: #011e59;
    text-decoration: none;
}

/* === "or" Divider === */
.login-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2em 0 1.4em 0;
}
.login-or span {
    margin: 0 0.8em;
    color: #7e88a3;
    font-weight: 600;
    font-size: 1.05em;
}
.login-or:before,
.login-or:after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #e4e4e4;
    margin-bottom: 2px;
}

/* === Admin login section box === */
.admin-login-section {
    max-width: 95%;
    margin: 1.5em auto 0 auto;
    padding: 1.5em 1.3em 1.3em 1.3em;
    background: #f6f7fa;
    border-radius: 15px;
    border: 1.5px solid #e0e7ef;
    box-shadow: 0 2px 10px #b6bad133;
}

/* === Responsive === */
@media (max-width: 900px) {
    .container { padding: 1.2em 0.4em; }
    .admin-nav { flex-wrap: wrap; }
    .admin-table th, .admin-table td { padding: 7px 6px; }
}
@media (max-width: 480px) {
    .container { padding: 0.6em 0.2em; }
    .admin-nav { font-size: 0.97em; }
}

/* === Fixed Admin Link (for login page) === */
.admin-link {
    position: fixed;
    bottom: 18px;
    right: 24px;
    background: #ede9fe;
    color: #7c3aed;
    padding: 7px 16px;
    border-radius: 7px;
    border: 1.3px solid #e9d5ff;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 2px 12px #b6d1ff24;
}
.admin-link:hover {
    background: #c7d2fe;
    color: #4c1d95;
    border-color: #a5b4fc;
}