/*
 * Halaman Sign In (views/v_signin.php). Tata letak mengikuti referensi Jobick (panel kiri
 * putih dengan sisi miring + form di panel berwarna), warna mengikuti portal (teal).
 * Ditulis ulang dengan kode sendiri, tidak memakai CSS / aset template tersebut.
 */
:root {
	--primary: #186265;
	--primary-dark: #0f4547;
	--primary-soft: rgba(24, 98, 101, .1);
	--heading: #312a2a;
	--text: #888;
	--danger: #f72b50;
	--aside-w: 490px;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: var(--text);
	background: #f5f5f5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.auth {
	display: flex;
	min-height: 100vh;
	background: var(--primary-soft);
}

/* ---------------------------------------------------------------- panel kiri */
.auth-aside {
	position: relative;
	z-index: 1;
	flex: 0 0 var(--aside-w);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 70px 40px 40px;
	text-align: center;
	background: #fff;
}

/* sisi miring ke kanan */
.auth-aside::after {
	content: "";
	position: absolute;
	top: 0;
	right: -122px;
	width: 122px;
	height: 100%;
	background: #fff;
	clip-path: polygon(0 100%, 100% 0, 0 0);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 40px 0 24px;
	color: var(--heading);
	text-align: left;
}
.brand:hover { text-decoration: none; color: var(--heading); }

.brand-icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	font-size: 30px;
	color: #fff;
	background: var(--primary);
}

.brand-name { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.brand-sub { display: block; font-size: 13px; color: var(--text); }

.auth-aside h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; color: var(--heading); }
.auth-aside p { margin: 0; font-size: 12.5px; line-height: 1.75; }

.aside-image { flex: 1; display: flex; align-items: center; width: 100%; max-width: 340px; margin: 40px 0 0; }
.aside-image svg { width: 100%; height: auto; }

/* ---------------------------------------------------------------- panel form */
.auth-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
}

.auth-form { width: 100%; max-width: 380px; }

.auth-form h4 { margin: 0 0 28px; font-size: 21px; font-weight: 600; text-align: center; color: var(--heading); }

.form-group { margin-bottom: 18px; }

.form-group label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; }
.form-group label .required { color: var(--danger); }

.input-wrap { position: relative; }

.form-control {
	width: 100%;
	height: 42px;
	padding: 0 44px 0 18px;
	font: inherit;
	font-size: 13px;
	color: var(--heading);
	background: #fff;
	border: 1px solid transparent;
	border-radius: 5px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-control::placeholder { color: #b3b3b3; }

.form-control.otp { height: 52px; padding: 0 18px; font-size: 22px; letter-spacing: 10px; text-align: center; }

.input-icon {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 42px;
	padding: 0;
	font-size: 18px;
	color: #b3b3b3;
	background: none;
	border: 0;
}
button.input-icon { cursor: pointer; }
button.input-icon:hover, button.input-icon:focus-visible { color: var(--primary); }

.btn {
	display: block;
	width: 100%;
	height: 42px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	color: #fff;
	background: var(--primary);
	border: 0;
	border-radius: 7px;
	cursor: pointer;
	transition: background .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .6; cursor: default; }

.btn-link {
	display: inline;
	width: auto;
	height: auto;
	padding: 0;
	font-size: 12.5px;
	color: var(--primary);
	background: none;
}
.btn-link:hover { background: none; text-decoration: underline; }
.btn-link:disabled { color: var(--text); text-decoration: none; }

.hint { margin: 0 0 20px; font-size: 12.5px; line-height: 1.7; text-align: center; }
.hint b { color: var(--heading); }

.auth-links { margin-top: 18px; font-size: 12.5px; line-height: 2; }
.auth-links.center { text-align: center; }

.auth-footer { margin-top: 36px; font-size: 11.5px; text-align: center; }

/* ---------------------------------------------------------------- alert (flashdata) */
.alert {
	position: relative;
	margin-bottom: 18px;
	padding: 10px 14px;
	font-size: 12.5px;
	line-height: 1.6;
	border-radius: 5px;
	border-left: 3px solid;
}
.alert-danger { color: #a3122f; background: #fde8ec; border-color: var(--danger); }
.alert-success { color: #0f5132; background: #e3f4ea; border-color: #2bc155; }
.alert-warning { color: #7a5200; background: #fff5dc; border-color: #ffb800; }
.alert-secondary { color: var(--heading); background: #eef0f2; border-color: #adb5bd; }

/* ---------------------------------------------------------------- layar kecil */
@media (max-width: 991.98px) {
	.auth { flex-direction: column; }
	.auth-aside { flex: none; padding: 32px 24px 8px; }
	.auth-aside::after { display: none; }
	.brand { margin: 0 0 12px; }
	.aside-image { display: none; }
	.auth-main { align-items: flex-start; padding: 32px 16px 48px; }
}
