* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: Inter, system-ui, sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent
}

body {
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  display: flex;
  height: 100vh;
}

.alert_content {
  color: #721c24;
  border: 1px solid #dc3545;
  border-radius: 5px;
  background-color: #f8d7da;
  padding: 10px;
  text-align: center;
  width: 100%;
  font-size: 18px;
}

.form-section {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px;
}

.form-section>a {
  display: block;
  height: 37px;
}

.form-section>a img {
  max-width: 200px;
  height: auto;
}

.form {
  width: 560px;
  margin: 0 auto;
}

.title {
  font-weight: 600;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: 0.02em;
  color: #06113c;
}

.link {
  margin: 16px 0 32px;
  font-size: 16px;
  line-height: 24px;
  color: #06113c;
}

.link a {
  color: #7178dc;
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
}

form {
  width: 100%;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 12px 0;
  font-size: 16px;
  line-height: 24px;
  color: #06113c;
  border: none;
  border-bottom: 2px solid #ebecef;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  border-bottom-color: #7178dc;
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #9ba0b1;
}


.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 14px;
}

.actions button,
.actions a {
  display: block;
  width: 45%;
  margin-top: 24px;
  padding: 16px 0;
  background: #7178dc;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  line-height: 16px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.actions button:hover,
.actions a:hover {
  background: #5a62c9;
  text-decoration: none;
}

.actions a {
  background-color: white;
  border: 1px solid #ebecef;
  color: #6a708a;
}

.actions a:hover {
  background-color: #f5f5fa;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: 664px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 24px;
  color: #6a708a;
}

.footer-info {
  color: #6a708a;
}

.footer-links {
  display: flex;
  gap: 32px;

}

.footer-links a {
  text-decoration: none;
  color: #007bff;
}

.footer-links a:hover {
  color: #7178dc;
}

.greetings {
  position: relative;
  width: 35%;
  padding: 200px 116px;
  background-color: #f5f5fa;
}

.greeting-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 48px;
  color: #384163;
}

.greeting-description {
  margin-top: 16px;
  font-size: 16px;
  line-height: 24px;
  color: #6a708a;
}

.greetings img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  max-width: 100%;
  height: auto;
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  position: relative;
  width: 432px;
  min-height: 384px;
  padding: 32px;
  background: #ffffff;
  box-shadow: 0px 32px 82px 16px rgba(46, 46, 88, 0.08);
  border-radius: 16px;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-content {
  flex: 1;
}

.modal-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #06113c;
}

.modal-description {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
  color: #9ba0b1;
}

.modal-button {
  margin-top: 24px;
  padding: 16px 0;
  background: #7178dc;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  line-height: 16px;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.modal-button:hover {
  background: #5a62c9;
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .form-section {
    width: 100%;
    padding: 35px;
  }

  .greetings {
    display: none;
  }

  .form {
    width: 100%;
  }

  .title {
    display: none;
  }

  .link {
    margin: 16px 0 24px;
  }

  input[type="email"],
  input[type="text"],
  input[type="password"] {
    margin-top: 16px;
  }

  input:first-of-type {
    margin-top: 32px;
  }

  .footer {
    width: 100%;
    visibility: hidden;
  }

  .actions {
    display: block;
  }

  .actions button,
  .actions a {
    width: 100%;
  }

  .modal {
    width: 90%;
    min-height: 350px;
    padding: 24px;
  }
}