/* Inter Text Font Import */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Regular.ttf") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Medium.ttf") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-SemiBold.ttf") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Bold.ttf") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  background-color: #E5F2FF;
  font-family: "Inter", sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Login Container */
.login-container {
    width: 500px;
    height: 508px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 60px;
    gap: 20px;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin: 0 -10px;
}

/* Login Header */
.login-header {
    display: flex;
    align-items: center;
    height: 36px;
    gap: 8px;
}

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

.login-title {
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
    color: #161616;
}

.login-header-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #161616;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-label {
  display: block;
  font-size: 16px;
  line-height: 24px;
  color: #161616;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #161616;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  color: #161616;
  background-color: #ffffff;
  border-color: #007aff;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder {
  color: #9C9C9C;
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .form-input {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #b5b5b5;
  text-align: center;
  white-space: nowrap;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.input-group-text img {
  width: 18px;
  height: 18px;
}
 
.input-group-text:hover {
  color: #161616;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid #161616;
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #007aff;
  border-color: #161616;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-label {
  color: #161616;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.forgot-password {
  color: #161616;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #161616;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 8px 20px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  border-radius: 8px;
  font-family: "SF Pro Text", sans-serif;
}

.btn-primary {
  color: #ffffff;
  background-color: #007aff;
  border-color: #007aff;
  font-weight: 400;
  border: none;
}

.btn-full {
  width: 100%;
}

.btn-login {
  width: 100%;
}

.help-block {
  color: #d92d20;
  font-size: 13px;
  margin-top: 6px;
}

.help-block:empty {
  display: none;
  margin-top: 0;
}

.has-error .form-input {
  border-color: #d92d20;
  box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.12);
}

.has-error .input-group-text {
  border-color: #d92d20;
  color: #d92d20;
}

@media (max-width: 600px) {
  body {
    height: auto;
    padding: 24px;
  }

  .login-container {
    width: 100%;
    height: auto;
    padding: 32px 24px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
