/* @import url('https://fonts.googleapis.com/css2?family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap'); */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:after,
blockquote:before,
q:after,
q:before {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --background: #f5f5f5;
  --brand-color: #2d3436;
  --brand-color-light: #636e72;
  --color: #202020;
  --color-smooth: #606060;
  --color-white: #f5f5f5;
  --blue: #2155cd;
  --blue-50: #2155cd80;
  --blue-hover: #396be2;
  --blue-hover-50: #396be280;
  --item-bg: #eee;
  --item-border: #d6d6d6;
  --shadow: rgba(0, 0, 0, 0.1);
  --submit-shadow: rgba(45, 52, 54, 0.25);
}

/* Keyframe Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

* {
  font-family: "Inter", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.btn-custom {
  background-color: var(--brand-color);
  color: white;
  font-weight: 600;
}

.btn-custom:hover {
  background-color: #1e272e;
  color: white;
}

*,
:after,
:before {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media screen and (max-width: 465px) {
  html {
    font-size: 14px;
  }
}

body {
  min-width: 100%;
  min-height: 100%;
  height: 100vh;
  background-color: var(--background);
}

.page-hero {
  max-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
}

.login-page {
  display: flex;
  justify-content: center;
}

.prewiev-hero {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prewiev-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.form-hero {
  width: 50vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  gap: 2.5rem;
  position: relative;
}

.logo-header {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInDown 0.6s ease-out;
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  animation: slideInUp 0.6s ease-out 0.1s both;
  margin-bottom: 0.5rem;
}

.logo-small {
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-color);
  box-shadow: 0px 2px 8px rgba(45, 52, 54, 0.15);
  animation: fadeInScale 0.6s ease-out;
  transition: all 0.3s ease;
}

.logo-small:hover {
  box-shadow: 0px 4px 12px rgba(45, 52, 54, 0.25);
  transform: scale(1.05);
}

.logo-text-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color);
  opacity: 0.5;
  animation: slideInUp 0.7s ease-out 0.1s both;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

.logo-header:hover .logo-text-brand {
  opacity: 0.75;
}

.logo {
  display: none;
}

.logo-text {
  display: none;
}

.logo-title {
  display: none;
}

.logo-subtitle {
  display: none;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color);
  animation: slideInUp 0.7s ease-out 0.15s both;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.login-subtitle {
  display: none;
}

.form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  width: 400px;
  max-width: 90%;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.input-hero {
  width: 100%;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInUp 0.8s ease-out backwards;
}

.input-hero:nth-of-type(1) {
  animation-delay: 0.3s;
}

.input-hero:nth-of-type(2) {
  animation-delay: 0.4s;
}

.input-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-color);
  transition: width 0.3s ease;
  border-radius: 1px;
  z-index: 1;
}

.input-hero input:focus ~ ::before,
.input-hero:has(input:focus)::before {
  width: 100%;
}

.input-hero input {
  width: 100%;
  height: 100%;
  display: block;
  top: 0;
  left: 0;
  position: absolute;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color);
  border-radius: 0.75rem;
  border: 0.125rem solid var(--item-border);
  background: var(--background);
  padding: 0.5rem 3rem 0.5rem 1rem;
  transition: all 0.3s ease 0s;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}

.input-hero input:focus {
  border-color: var(--brand-color);
  outline: 0;
  box-shadow: 0px 4px 16px rgba(45, 52, 54, 0.2);
  transform: translateY(-2px);
}

.input-name {
  left: 1rem;
  position: relative;
  display: block;
  background: var(--background);
  z-index: 2;
  transition: all 0.3s ease 0s;
  top: 0;
  color: var(--color-smooth);
  font-size: 0.95rem;
}

.input-hero input:focus + .input-name {
  top: -1.25rem;
  color: var(--brand-color);
  font-weight: 600;
}

.input-hero input:valid + .input-name {
  top: -1.25rem;
  color: var(--color-smooth);
}

.input-icon {
  position: relative;
  right: 0.5rem;
  z-index: 2;
  color: var(--color-smooth);
  transition: all 0.3s ease 0s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-hero input:focus + .input-name + .input-icon {
  color: var(--brand-color);
  transform: scale(1.1);
}

.input-icon svg {
  vertical-align: middle;
  width: 1.875rem;
  height: 1.875rem;
}

.password-input {
  margin-bottom: 1.25rem;
}

.input-hero input::placeholder {
  color: rgba(96, 96, 96, 0.5);
}

.recovery-password {
  position: absolute;
  bottom: -1.15rem;
  right: 0;
  color: var(--blue);
}

.checkbox-hero {
  width: 100%;
  align-items: flex-start;
  color: var(--color-smooth);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInUp 0.8s ease-out 0.5s both;
}

.checkbox-hero input {
  display: none;
}

.checkbox-cover {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  background: var(--item-bg);
  border-radius: 0.5rem;
  border: 0.125rem solid var(--item-border);
  transition: all 0.25s ease 0s;
  cursor: pointer;
}

.checkbox-hero input:checked + .checkbox-cover {
  border-color: var(--blue);
  border-width: 0.4rem;
}

.submit-btn {
  width: 100%;
  height: 40px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-white);
  border-radius: 0.5rem;
  transition: all 0.25s ease 0s;
  box-shadow: inset 1px 1px 3px var(--shadow);
  background: var(--blue);
  border: 1px solid var(--blue-50);
  cursor: pointer;
  box-shadow: 0px 4px 4px var(--submit-shadow);
  transition: all 0.25s ease 0s;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.submit-btn:hover {
  background: var(--blue-hover);
  border: 1px solid var(--blue-hover-50);
}

.form-bottom {
  position: fixed;
  bottom: 1rem;
  color: var(--color-smooth);
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
}

.form-bottom a {
  color: var(--blue);
}

@media screen and (max-width: 768px) {
  .prewiev-hero {
    display: none;
  }
  .form-hero {
    width: 100vw;
    padding-top: 4rem;
  }
  .logo-header {
    position: absolute;
    top: 1rem;
    left: 1rem;
  }
  .logo-small {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
  }
  .logo-text-brand {
    font-size: 0.85rem;
  }
  .login-title {
    font-size: 1.6rem;
  }
}
