677 lines
16 KiB
CSS
677 lines
16 KiB
CSS
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap");
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════
|
|
CSS VARIABLES — default: SISWA (biru)
|
|
══════════════════════════════════════════════ */
|
|
:root {
|
|
--blob1: rgba(100, 180, 255, 0.12);
|
|
--blob2: rgba(120, 80, 255, 0.1);
|
|
--badge-dot: #69f0ae;
|
|
--role-color: #1a5fb8;
|
|
--underline-from: #60b4ff;
|
|
--underline-to: #a78bfa;
|
|
--submit-from: #2b8ef3;
|
|
--submit-to: #1a7ae0;
|
|
--submit-shadow: rgba(43, 142, 243, 0.35);
|
|
--submit-shadow-hover: rgba(43, 142, 243, 0.45);
|
|
--check-color: #2b8ef3;
|
|
--focus-border: #2b8ef3;
|
|
--focus-shadow: rgba(43, 142, 243, 0.12);
|
|
--link-color: #1a5fb8;
|
|
--link-hover-bg: #e8f4ff;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════
|
|
GURU — Hijau (sesuai portal landing page)
|
|
Referensi: .pc-green / .bp-green / #accent2
|
|
══════════════════════════════════════════════ */
|
|
body.login-guru {
|
|
--blob1: rgba(34, 197, 94, 0.14);
|
|
--blob2: rgba(134, 239, 172, 0.12);
|
|
--badge-dot: #4ade80;
|
|
--role-color: #15803d;
|
|
--underline-from: #22c55e;
|
|
--underline-to: #86efac;
|
|
--submit-from: #22c55e;
|
|
--submit-to: #16a34a;
|
|
--submit-shadow: rgba(34, 197, 94, 0.35);
|
|
--submit-shadow-hover: rgba(34, 197, 94, 0.45);
|
|
--check-color: #22c55e;
|
|
--focus-border: #22c55e;
|
|
--focus-shadow: rgba(34, 197, 94, 0.12);
|
|
--link-color: #15803d;
|
|
--link-hover-bg: #f0fdf4;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════
|
|
ADMIN — Orange (sesuai portal landing page)
|
|
Referensi: .pc-orange / .bp-orange / #accent1
|
|
══════════════════════════════════════════════ */
|
|
body.login-admin {
|
|
--blob1: rgba(249, 115, 22, 0.14);
|
|
--blob2: rgba(251, 146, 60, 0.12);
|
|
--badge-dot: #fb923c;
|
|
--role-color: #c2410c;
|
|
--underline-from: #f97316;
|
|
--underline-to: #fdba74;
|
|
--submit-from: #f97316;
|
|
--submit-to: #ea580c;
|
|
--submit-shadow: rgba(249, 115, 22, 0.35);
|
|
--submit-shadow-hover: rgba(249, 115, 22, 0.45);
|
|
--check-color: #f97316;
|
|
--focus-border: #f97316;
|
|
--focus-shadow: rgba(249, 115, 22, 0.12);
|
|
--link-color: #c2410c;
|
|
--link-hover-bg: #fff7ed;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════
|
|
BASE — background SISWA (biru navy)
|
|
══════════════════════════════════════════════ */
|
|
body {
|
|
font-family: "Plus Jakarta Sans", sans-serif;
|
|
min-height: 100vh;
|
|
width: 100vw;
|
|
overflow: hidden;
|
|
background: linear-gradient(
|
|
135deg,
|
|
#0d47a1 0%,
|
|
#1565c0 35%,
|
|
#1976d2 65%,
|
|
#283593 100%
|
|
);
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════
|
|
GURU — background hijau tua yang dalam & padu
|
|
Nada: forest / emerald, lebih kaya dari sekadar gelap
|
|
══════════════════════════════════════════════ */
|
|
body.login-guru {
|
|
background: linear-gradient(
|
|
135deg,
|
|
#052e16 0%,
|
|
#064e2a 30%,
|
|
#166534 60%,
|
|
#065f2d 85%,
|
|
#052e16 100%
|
|
) !important;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════
|
|
ADMIN — background oranye tua yang hangat & padu
|
|
Nada: ember / mahogany, lebih kaya & tidak terlalu merah
|
|
══════════════════════════════════════════════ */
|
|
body.login-admin {
|
|
background: linear-gradient(
|
|
135deg,
|
|
#431407 0%,
|
|
#6b2109 30%,
|
|
#9a3412 60%,
|
|
#7c2d12 85%,
|
|
#431407 100%
|
|
) !important;
|
|
}
|
|
|
|
/* ── DECORATIVE SHAPES ── */
|
|
.shape {
|
|
position: fixed;
|
|
pointer-events: none;
|
|
}
|
|
.shape-1 {
|
|
width: 320px;
|
|
height: 320px;
|
|
border: 2.5px solid rgba(255, 255, 255, 0.07);
|
|
border-radius: 60px;
|
|
top: -80px;
|
|
left: 80px;
|
|
transform: rotate(20deg);
|
|
}
|
|
.shape-2 {
|
|
width: 220px;
|
|
height: 220px;
|
|
border: 2px solid rgba(255, 255, 255, 0.06);
|
|
border-radius: 40px;
|
|
bottom: -40px;
|
|
left: 260px;
|
|
transform: rotate(-15deg);
|
|
}
|
|
.shape-3 {
|
|
width: 180px;
|
|
height: 180px;
|
|
border: 2px solid rgba(255, 255, 255, 0.05);
|
|
border-radius: 36px;
|
|
top: 40px;
|
|
right: 320px;
|
|
transform: rotate(30deg);
|
|
}
|
|
.shape-4 {
|
|
width: 400px;
|
|
height: 400px;
|
|
border: 2px solid rgba(255, 255, 255, 0.04);
|
|
border-radius: 80px;
|
|
bottom: -160px;
|
|
right: -80px;
|
|
transform: rotate(12deg);
|
|
}
|
|
.shape-5 {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-radius: 24px;
|
|
top: 30%;
|
|
left: 38%;
|
|
transform: rotate(20deg);
|
|
}
|
|
|
|
.blob {
|
|
position: fixed;
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
filter: blur(80px);
|
|
}
|
|
.blob-1 {
|
|
width: 500px;
|
|
height: 500px;
|
|
background: var(--blob1);
|
|
top: -200px;
|
|
left: -100px;
|
|
}
|
|
.blob-2 {
|
|
width: 350px;
|
|
height: 350px;
|
|
background: var(--blob2);
|
|
bottom: -100px;
|
|
right: 200px;
|
|
}
|
|
|
|
/* ── LAYOUT ── */
|
|
.page-wrap {
|
|
width: 100%;
|
|
max-width: 1100px;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 80px;
|
|
position: relative;
|
|
z-index: 1;
|
|
gap: 60px;
|
|
}
|
|
|
|
/* ── LEFT PANEL ── */
|
|
.left-panel {
|
|
flex: 1;
|
|
color: white;
|
|
}
|
|
|
|
.school-tag {
|
|
font-family: "Sora", sans-serif;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 3px;
|
|
text-transform: uppercase;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
margin-bottom: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.school-tag::before {
|
|
content: "";
|
|
display: block;
|
|
width: 28px;
|
|
height: 2px;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 99px;
|
|
}
|
|
|
|
.left-logo {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1.5px solid rgba(255, 255, 255, 0.18);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
.left-logo img {
|
|
width: 38px;
|
|
height: 38px;
|
|
object-fit: contain;
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
.left-welcome {
|
|
font-family: "Sora", sans-serif;
|
|
font-size: clamp(42px, 5.5vw, 72px);
|
|
font-weight: 800;
|
|
line-height: 1.05;
|
|
margin-bottom: 20px;
|
|
letter-spacing: -1px;
|
|
color: white;
|
|
}
|
|
.left-welcome span {
|
|
display: block;
|
|
color: rgba(255, 255, 255, 0.35);
|
|
font-size: 0.42em;
|
|
font-weight: 600;
|
|
font-family: "Plus Jakarta Sans", sans-serif;
|
|
letter-spacing: 0;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.left-divider {
|
|
width: 40px;
|
|
height: 3px;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 99px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.left-desc {
|
|
font-size: 14px;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
line-height: 1.8;
|
|
max-width: 300px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.btn-learn {
|
|
display: inline-block;
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border: 1.5px solid rgba(255, 255, 255, 0.22);
|
|
color: white;
|
|
font-family: "Plus Jakarta Sans", sans-serif;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
padding: 10px 22px;
|
|
border-radius: 99px;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-learn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
/* ── FORM CARD ── */
|
|
.form-card {
|
|
width: 380px;
|
|
flex-shrink: 0;
|
|
background: #f3effc;
|
|
border: 1px solid rgba(180, 160, 230, 0.3);
|
|
border-radius: 28px;
|
|
padding: 40px 40px 36px;
|
|
box-shadow:
|
|
0 32px 64px rgba(0, 0, 0, 0.22),
|
|
0 0 0 1px rgba(255, 255, 255, 0.7);
|
|
color: #1a1a2e;
|
|
}
|
|
|
|
/* GURU — card putih kehijauan lembut */
|
|
body.login-guru .form-card {
|
|
background: #f0fdf4;
|
|
border-color: rgba(134, 239, 172, 0.35);
|
|
box-shadow:
|
|
0 32px 64px rgba(0, 0, 0, 0.22),
|
|
0 0 0 1px rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
/* ADMIN — card putih keoranyean lembut */
|
|
body.login-admin .form-card {
|
|
background: #fff7ed;
|
|
border-color: rgba(253, 186, 116, 0.35);
|
|
box-shadow:
|
|
0 32px 64px rgba(0, 0, 0, 0.22),
|
|
0 0 0 1px rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
.card-title-wrap {
|
|
text-align: center;
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.role-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
background: white;
|
|
border: 1px solid rgba(180, 160, 230, 0.35);
|
|
border-radius: 99px;
|
|
padding: 5px 14px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: var(--role-color);
|
|
letter-spacing: 1.5px;
|
|
text-transform: uppercase;
|
|
font-family: "Sora", sans-serif;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
body.login-guru .role-badge {
|
|
border-color: rgba(134, 239, 172, 0.45);
|
|
}
|
|
|
|
body.login-admin .role-badge {
|
|
border-color: rgba(253, 186, 116, 0.45);
|
|
}
|
|
|
|
.badge-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--badge-dot);
|
|
box-shadow: 0 0 6px var(--badge-dot);
|
|
}
|
|
|
|
.card-title {
|
|
font-family: "Sora", sans-serif;
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
color: #1a1a2e;
|
|
margin-bottom: 6px;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.title-underline {
|
|
display: inline-block;
|
|
width: 36px;
|
|
height: 3px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
var(--underline-from),
|
|
var(--underline-to)
|
|
);
|
|
border-radius: 99px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ── FIELDS ── */
|
|
.field-group {
|
|
margin-bottom: 14px;
|
|
}
|
|
.field-label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #4a5568;
|
|
margin-bottom: 7px;
|
|
}
|
|
.field-wrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.field-wrap .field-input {
|
|
padding-right: 44px;
|
|
}
|
|
|
|
.field-input {
|
|
width: 100%;
|
|
background: white;
|
|
border: 1.5px solid #ddd6f5;
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
font-family: "Plus Jakarta Sans", sans-serif;
|
|
font-weight: 500;
|
|
color: #1a1a2e;
|
|
outline: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
body.login-guru .field-input {
|
|
border-color: #bbf7d0;
|
|
}
|
|
body.login-admin .field-input {
|
|
border-color: #fed7aa;
|
|
}
|
|
|
|
.field-input::placeholder {
|
|
color: #bbb5cc;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.field-input:focus {
|
|
border-color: var(--focus-border);
|
|
background: white;
|
|
box-shadow: 0 0 0 3px var(--focus-shadow);
|
|
}
|
|
|
|
.toggle-password {
|
|
position: absolute;
|
|
right: 12px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.eye-icon {
|
|
width: 17px;
|
|
height: 17px;
|
|
opacity: 0.3;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s;
|
|
}
|
|
.toggle-password:hover .eye-icon {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* ── REMEMBER ── */
|
|
.remember-row {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 6px 0 20px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.remember-check {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 1.5px solid #d4cce8;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
body.login-guru .remember-check {
|
|
border-color: #86efac;
|
|
}
|
|
body.login-admin .remember-check {
|
|
border-color: #fdba74;
|
|
}
|
|
|
|
.remember-check:checked {
|
|
background: var(--check-color);
|
|
border-color: var(--check-color);
|
|
}
|
|
|
|
.remember-check:checked::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 3px;
|
|
top: 0;
|
|
width: 5px;
|
|
height: 9px;
|
|
border: 1.5px solid white;
|
|
border-top: none;
|
|
border-left: none;
|
|
transform: rotate(45deg);
|
|
}
|
|
.remember-text {
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
/* ── SUBMIT BUTTON ── */
|
|
.submit-btn {
|
|
width: 100%;
|
|
background: linear-gradient(135deg, #2b8ef3, #1a7ae0);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 14px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
font-family: "Plus Jakarta Sans", sans-serif;
|
|
cursor: pointer;
|
|
transition: all 0.25s;
|
|
box-shadow: 0 8px 24px rgba(43, 142, 243, 0.35);
|
|
letter-spacing: 0.3px;
|
|
}
|
|
.submit-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 12px 30px rgba(43, 142, 243, 0.45);
|
|
}
|
|
.submit-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* GURU — tombol hijau */
|
|
body.login-guru .submit-btn {
|
|
background: linear-gradient(135deg, #22c55e, #16a34a);
|
|
box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
|
|
}
|
|
body.login-guru .submit-btn:hover {
|
|
box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
|
|
}
|
|
|
|
/* ADMIN — tombol orange */
|
|
body.login-admin .submit-btn {
|
|
background: linear-gradient(135deg, #f97316, #ea580c);
|
|
box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
|
|
}
|
|
body.login-admin .submit-btn:hover {
|
|
box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45);
|
|
}
|
|
|
|
/* ── DIVIDER ── */
|
|
.card-divider {
|
|
border: none;
|
|
border-top: 1px solid #ede9fb;
|
|
margin: 20px 0 16px;
|
|
}
|
|
body.login-guru .card-divider {
|
|
border-top-color: #bbf7d0;
|
|
}
|
|
body.login-admin .card-divider {
|
|
border-top-color: #fed7aa;
|
|
}
|
|
|
|
/* ── OTHER PORTALS ── */
|
|
.other-portals {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #9ba3b8;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
.other-portals a {
|
|
color: var(--link-color);
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
padding: 5px 12px;
|
|
border-radius: 6px;
|
|
font-size: 15px;
|
|
transition: background 0.2s;
|
|
}
|
|
.other-portals a:hover {
|
|
background: var(--link-hover-bg);
|
|
}
|
|
|
|
/* ── TOAST ── */
|
|
.toast-error {
|
|
background: #fee2e2;
|
|
border: 1px solid #fca5a5;
|
|
color: #dc2626;
|
|
padding: 10px 14px;
|
|
border-radius: 10px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
margin-bottom: 14px;
|
|
animation:
|
|
toastIn 0.3s ease both,
|
|
toastOut 0.4s ease 3.5s forwards;
|
|
}
|
|
@keyframes toastIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
@keyframes toastOut {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
}
|
|
|
|
/* ── BACK LINK ── */
|
|
.back-link {
|
|
display: block;
|
|
text-align: center;
|
|
color: rgba(255, 255, 255, 0.35);
|
|
font-size: 12px;
|
|
text-decoration: none;
|
|
margin-top: 14px;
|
|
transition: color 0.2s;
|
|
font-weight: 500;
|
|
}
|
|
.back-link:hover {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
/* ── RESPONSIVE ── */
|
|
@media (max-width: 860px) {
|
|
body {
|
|
overflow: auto;
|
|
align-items: flex-start;
|
|
}
|
|
.page-wrap {
|
|
flex-direction: column;
|
|
padding: 48px 24px;
|
|
gap: 32px;
|
|
min-height: auto;
|
|
}
|
|
.form-card {
|
|
width: 100%;
|
|
}
|
|
.left-welcome {
|
|
font-size: 40px;
|
|
}
|
|
}
|