@import 'reset.css';
@import 'fonts.css';

[v-cloak] {
  display: none;
}

@keyframes loadingCircle {
  100% {
    transform: rotate(360deg);
  }
}

:root {
  --font-family: 'SB Sans Text', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --outline: 4px solid #006fff26;
}

* {
  box-sizing: border-box;
}

body {
  box-sizing: border-box;
  font-family: var(--font-family);
  background-color: #ffffff;
}

#app {
  height: 100vh;
  width: 100vw;
}

#app-background {
  width: 75vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  height: 100%;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.title-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 520px;
}

.title-logo {
  height: 68px;
  width: 100%;
  display: block;
  background-image: url('../assets/images/logo.svg');
  margin-bottom: 52px;
}

.title-description {
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.form-wrapper {
  width: 370px;
  padding: 24px;
  padding-top: 40px;
  gap: 24px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0px 10px 80px 0px #0000001a;
  box-shadow: 0px 80px 280px 0px #00000024;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.form-title {
  font-weight: 500;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: -1.2px;
  color: #101828;
}

.form-description {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.4px;
  color: #0f0f1099;
  text-align: center;
  white-space: pre-wrap;
}

.form {
  flex: 1;
  width: 100%;
}

.form-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.3px;
  text-align: center;
  color: #0f0f1099;
  margin-bottom: 16px;
}

.alert {
  border: 1px solid;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 8px;
  width: 100%;
}

.alert.alert--error {
  background-color: #fce4e6;
  border-color: #f9d2d6;
}

.alert.alert--success {
  background-color: #e0f5e4;
  border-color: #c7eecf;
}

.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alert.alert--error .alert-icon {
  background: url('../assets/images/errorFill.svg');
}

.alert.alert--success .alert-icon {
  background: url('../assets/images/successFill.svg');
}

.alert-content {
  display: flex;
  flex-direction: column;
}

.alert-title,
.alert-description {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.4px;
}

.alert-title {
  font-weight: 500;
  color: #0f0f10;
}

.alert-description {
  font-weight: 400;
  color: #0f0f1099;
}

.form-control {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 24px;
}

.form-control label {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.4px;
  color: #0f0f1099;
  margin-bottom: 4px;
}

.form-control .input-wrapper {
  width: 100%;
  position: relative;
}

.form-control input {
  width: 100%;
  border: 1px solid #e3e5e8;
  border-radius: 4px;
  padding: 5px 11px;
  background-color: #ffffff;
  line-height: 20px;
  color: #0f0f10;
  letter-spacing: -0.4px;
  font-size: 14px;
  font-family: var(--font-family);
  transition: border-color 0.3s ease-in-out;
}

.form-control input.input--password {
  padding-right: 31px;
}

.form-control input::placeholder {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.4px;
  color: #0f0f1066;
  font-family: var(--font-family);
}

.form-control .input-wrapper:hover input,
.form-control input:focus-visible {
  border-color: #006fff;
}

.form-control input:focus-visible {
  outline: var(--outline);
}

.form-control .input-wrapper.input-wrapper--disabled input {
  background-color: #f1f2f4;
  border-color: #f1f2f4;
  cursor: not-allowed;
}

.form-control .input-wrapper.input-wrapper--disabled svg {
  pointer-events: none;
}

.form-control input:focus-visible {
  outline: var(--outline);
}

.form-control.form-control--has-error input,
.form-control.form-control--has-error .input-wrapper:hover input,
.form-control.form-control--has-error input:focus-visible {
  border-color: #ea3e4d;
  outline: none;
}

.form-control-error {
  margin-top: 4px;
  opacity: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.3px;
  color: #ea3e4d;
}

.form-control--has-error .form-control-error {
  opacity: 1;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.button {
  position: relative;
  width: 100%;
  border-radius: 4px;
  border: 1px solid;
  padding: 5px 11px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.4px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: border-color, background 0.3s ease-in-out;
}

.button--primary {
  background-color: #006fff;
  border-color: #006fff;
  color: #ffffff;
}

.button--text {
  background-color: transparent;
  border-color: transparent;
  color: #0f0f10;
}

.button--text:hover:not(.button--text:disabled) {
  background-color: #f1f2f4;
  border-color: #f1f2f4;
}

.button--text:active:not(.button--text:disabled) {
  outline: var(--outline);
}

.button--text:focus-visible:not(.button--text:disabled) {
  background-color: #ffffff;
  border-color: #ffffff;
  outline: var(--outline);
}

.button--text:disabled {
  cursor: not-allowed;
  color: #0f0f1066;
}

.button--primary:hover {
  background-color: #005ed9;
}

.button--primary:active {
  background-color: #004eb5;
  outline: var(--outline);
}

.button--primary:focus-visible {
  outline: var(--outline);
}

.button--loading {
  cursor: progress;
  color: transparent;
}

.button--loading svg {
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  animation: loadingCircle 1s linear infinite;
}

.toggle-password {
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 12px;
}
