	
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
	box-sizing: border-box;
}

body {
  background: #f6f5f7;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 40px 0;
  overflow: hidden;
}

h1 {
	font-weight: bold;
	margin: 0;
}

h2 {
	text-align: center;
}

p {
	font-size: 14px;
	font-weight: 100;
	line-height: 20px;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
}

span {
	font-size: 12px;
}

a {
	color: #333;
	font-size: 11px;
	text-decoration: none;
	margin: 15px 0;
}
/* Flash error - compact version */
.error-message {
  background-color: rgba(24, 119, 242, 0.15);
  color: #2699d3;
  border: 1px solid rgba(24, 119, 242, 0.4);
  padding: 6px 10px;       /* lebih kecil dari sebelumnya */
  border-radius: 4px;      /* sedikit lebih kecil */
  margin-bottom: 10px;     /* jarak ke input lebih compact */
  font-size: 12px;         /* font lebih kecil */
  text-align: center;
  animation: fadeIn 0.3s ease; /* animasi lebih cepat */
}

/* Animasi muncul */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}


button {
	border-radius: 10px;
	border: 1px solid #ffffff;
	background: linear-gradient(135deg, rgba(92,178,222,.9), rgba(22,117,165,.9));
	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
	padding: 12px 45px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in;
}

button:hover {
	background: linear-gradient(135deg, rgba(22,117,165,.9), rgba(92,178,222,.9));
	color: #ffffff;
	border: 1px solid #ffffff;
}

button:active {
	transform: scale(0.95);
	background-color: #ffffff;
	color: #2699d3;
}

button:focus {
	outline: none;
}

button.ghost {
	background-color: transparent;
	border-color: #FFFFFF;
}
.login-card img {
      display: block;
      margin: 0 auto 20px auto;
      width: 140px;
      height: auto;
    }
form {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 50px;
	height: 100%;
	text-align: center;
}
.input-field {
  position: relative;
  margin-bottom: 20px;
}

.input-field input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 8px;
  color: #2699d3;
  font-size: 14px;
  outline: none;
  border: 1px solid rgba(24, 119, 242, 0.4);
  transition: all 0.3s ease;
}

.input-field input:focus {
  border-color: #2699d3;
}

.input-field label {
  position: absolute;
  left: 15px;
  top: 14px;
  color: #a0c4ff; /* label default biru muda */
  font-size: 13px;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  top: -10px;
  left: 10px;
  font-size: 11px;
  color: #fff; /* teks label saat fokus putih agar kontras */
  background: #2699d3; /* background label biru pekat */
  padding: 0 4px;
  border-radius: 4px;
}

.access {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #7dbcdb, #1675a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 12px;
    animation: fadeDown 0.6s ease;
    font-family: 'Montserrat', sans-serif;
}

.container {
	background-color: #fff;
	border-radius: 10px;
  	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 
			0 10px 10px rgba(0,0,0,0.22);
	position: relative;
	overflow: hidden;
	width: 768px;
	max-width: 100%;
	min-height: 480px;
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
}

.container.right-panel-active .sign-in-container {
	transform: translateX(100%);
}

.sign-up-container {
	left: 0;
	width: 50%;
	opacity: 0;
	z-index: 1;
}

.container.right-panel-active .sign-up-container {
	transform: translateX(100%);
	opacity: 1;
	z-index: 5;
	animation: show 0.6s;
}

@keyframes show {
	0%, 49.99% {
		opacity: 0;
		z-index: 1;
	}
	
	50%, 100% {
		opacity: 1;
		z-index: 5;
	}
}

.overlay-container {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	overflow: hidden;
	transition: transform 0.6s ease-in-out;
	z-index: 100;
}

.container.right-panel-active .overlay-container{
	transform: translateX(-100%);
}

.overlay {
	background: #1675a5;
	background: -webkit-linear-gradient(to right, #2699d3, #1675a5);
	background: linear-gradient(to right, #2699d3, #1675a5);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0 0;
	color: #FFFFFF;
	position: relative;
	left: -100%;
	height: 100%;
	width: 200%;
  	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
  	transform: translateX(50%);
}

.overlay-panel {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 40px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.overlay-left {
	transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
	transform: translateX(0);
}

.overlay-right {
	right: 0;
	transform: translateX(0);
}

.container.right-panel-active .overlay-right {
	transform: translateX(20%);
}

.social-container {
	margin: 20px 0;
}

.social-container a {
	border: 1px solid #DDDDDD;
	border-radius: 50%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin: 0 5px;
	height: 40px;
	width: 40px;
}

/* ============================= */
/*   RESPONSIVE UNTUK MOBILE     */
/* ============================= */

@media (max-width: 768px) {
	body {
		margin: 0;
		overflow: visible;
		height: auto;
		padding: 20px 0;
	}
    .access {
        font-size: 15px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        font-family: 'Montserrat', sans-serif;
    }
	.container {
		width: 95%;
		min-height: 480px;
	}

	form {
		padding: 0 25px;
	}

	h1 {
		font-size: 22px;
	}

	p {
		font-size: 13px;
		margin: 15px 0 20px;
	}

	button {
		padding: 10px 32px;
		font-size: 11px;
	}
}

/* ============================= */
/*   MOBILE KECIL (<= 480px)     */
/* ============================= */
@media (max-width: 480px) {

	.container {
		width: 100%;
		min-height: 450px;
		border-radius: 6px;
	}

	form {
		padding: 0 20px;
	}

	input {
		padding: 10px 12px;
		font-size: 13px;
	}

	.overlay-panel {
		padding: 0 20px;
	}

	h1 {
		font-size: 20px;
	}

	button {
		padding: 10px 28px;
	}
}

/* ============================= */
/*   MOBILE SANGAT KECIL <=360px */
/* ============================= */
@media (max-width: 360px) {
	h1 {
		font-size: 18px;
	}

	p {
		font-size: 12px;
	}

	button {
		padding: 8px 25px;
		font-size: 10px;
	}

	.overlay-panel {
		padding: 0 15px;
	}
}

/* ============================= */
/* PERHALUS ANIMASI              */
/* ============================= */
.container,
.overlay,
.form-container {
	transform-style: preserve-3d;
	will-change: transform, opacity;
}
