:root {
  --bs-blue: #696cff;
  --bs-primary: #696cff;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Public Sans", sans-serif;
  background: #f5f5f9;
}

.authentication-wrapper {
  display: flex;
  flex-basis: 100%;
  min-height: 100vh;
  width: 100%;
}

.authentication-wrapper .authentication-basic {
  width: 100%;
  max-width: 400px;
  margin: auto;
}

.authentication-wrapper .authentication-cover {
  display: none;
}

.card {
  box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
  border: 0;
}

.card-body {
  padding: 2.5rem;
}

.app-brand {
  margin-bottom: 1.5rem;
  text-align: center;
}

.app-brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-brand-logo img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.app-brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #696cff;
  margin-top: 0.75rem;
  text-align: center;
  display: block;
}

.app-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.form-label {
  font-weight: 500;
  color: #566a7f;
}

.form-control {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border: 1px solid #d9dee3;
}

.form-control:focus {
  border-color: #696cff;
  box-shadow: 0 0 0 0.25rem rgba(105, 108, 255, 0.25);
}

.input-group-text {
  background-color: transparent;
  border-right: 0;
}

.input-group .form-control:not(:first-child) {
  border-left: 0;
  padding-left: 0;
}

.btn-primary {
  background-color: #696cff;
  border-color: #696cff;
}

.btn-primary:hover {
  background-color: #5f61e6;
  border-color: #5f61e6;
}

.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 45%;
  height: 1px;
  background-color: #d9dee3;
}

.divider:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 45%;
  height: 1px;
  background-color: #d9dee3;
}

.google-btn {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.google-icon-wrapper {
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.google-icon-wrapper:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
}

.google-icon {
  width: 30px;
  height: 30px;
}

/* OTP Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.otp-input-container {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.otp-input {
  width: 40px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  margin-right: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.otp-input:focus {
  border-color: #696cff;
  outline: none;
}

#otp-success {
  color: #28a745;
  margin-bottom: 10px;
  text-align: center;
}

#otp-error {
  color: #dc3545;
  margin-bottom: 10px;
  text-align: center;
}

.alert-login {
  margin-bottom: 15px;
}

/* Responsive styles */
@media (min-width: 992px) {
  .authentication-wrapper .authentication-basic {
    max-width: 450px;
  }

  .authentication-wrapper .authentication-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: url("../img/layouts/images.png") no-repeat center center / cover;

    position: relative;
  }

  .authentication-wrapper .authentication-cover::after {
    content: "";
    position: absolute;
    inset: 0;
  }

  .authentication-cover-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 3rem;
    text-align: center;
    max-width: 500px;
  }

  .authentication-cover-content h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
}

.auth-toggle-link {
  color: #696cff;
  cursor: pointer;
  text-decoration: none;
}

.auth-toggle-link:hover {
  text-decoration: underline;
}

.login-form,
.register-form {
  transition: opacity 0.3s ease;
}
