* {
	box-sizing: border-box;
}

body {
	background:
    radial-gradient(circle at top left, rgba(0, 87, 255, .35), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 180, 255, .18), transparent 30%),
    linear-gradient(135deg, #071120, #0b1530 55%, #06101f);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	font-family: 'Montserrat', sans-serif;
	min-height: 100vh;
	margin: 0;
	padding: 24px;
	color: #0f172a;
}

.login-page {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-brand {
  display: none;
  text-align: center;
  color: white;
  margin-bottom: 22px;
}

.mobile-brand img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid rgba(255,255,255,.2);
}

h1 {
	font-weight: bold;
	margin: 0;
}

p {
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0.3px;
	margin: 20px 0 30px;
}

span {
	font-size: 12px;
	color: #64748b;
	margin: 12px 0;
}

a {
	color: #0057ff;
	font-size: 13px;
	text-decoration: none;
	margin: 15px 0;
	font-weight: 800;
}

button {
	border-radius: 999px;
	border: 1px solid #0057ff;
	background: linear-gradient(135deg, #0057ff, #003bba);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
	padding: 13px 36px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in, opacity .2s ease;
	cursor: pointer;
	margin-top: 8px;
}

button:hover {
  opacity: .92;
}

button:active {
	transform: scale(0.95);
}

button:focus {
	outline: none;
}

button.ghost {
	background: transparent;
	border-color: #FFFFFF;
}

form {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 50px;
	height: 100%;
	text-align: center;
}

input {
	background-color: #eef4ff;
	border: 1px solid #dbeafe;
	padding: 13px 15px;
	margin: 8px 0;
	width: 100%;
	border-radius: 14px;
	outline: none;
	font-weight: 700;
}

input:focus {
  border-color: #0057ff;
  box-shadow: 0 0 0 4px rgba(0,87,255,.10);
}

.container {
	background-color: #fff;
	border-radius: 28px;
  box-shadow:
    0 35px 90px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,.10);
	position: relative;
	overflow: hidden;
	width: 900px;
	max-width: 100%;
	min-height: 560px;
}

.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:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 25%),
    linear-gradient(135deg, #0057ff, #003bba 55%, #071a5c);
	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 48px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
  font-size: 32px;
}

.overlay-panel p {
  color: rgba(255,255,255,.88);
}

.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%);
}

.login-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  border: 4px solid #eef4ff;
  box-shadow: 0 18px 35px rgba(0,87,255,.20);
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.error {
  width: 100%;
  background: #fee2e2;
  color: #991b1b;
  padding: 11px;
  border-radius: 13px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 760px) {
  body {
    padding: 16px;
    align-items: flex-start;
  }

  .login-page {
    display: block;
  }

  .mobile-brand {
    display: block;
  }

  .container {
    min-height: auto;
    overflow: visible;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
  }

  .form-container {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none !important;
    display: none;
  }

  .sign-in-container {
    display: block;
  }

  .container.right-panel-active .sign-in-container {
    display: none;
  }

  .container.right-panel-active .sign-up-container {
    display: block;
    animation: none;
  }

  .sign-up-container {
    width: 100%;
  }

  form {
    border-radius: 24px;
    padding: 34px 24px;
    min-height: 470px;
  }

  .overlay-container {
    display: none;
  }

  h1 {
    font-size: 24px;
  }
}
