@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.login-body,
body.twofactor-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 35%, #8b5cf6 60%, #6366f1 100%);
  color: white;
}

.navbar {
  background: transparent;
  flex: none;
  padding: 1rem 2rem;
}
.navbar .navbar-brand {
  font-size: 1.75rem;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    justify-content: space-between;
  }
  
  .navbar .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar .ms-auto {
    margin-left: 0 !important;
  }
}

.small-button {
  padding: 0.4rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: background 0.2s ease;
}

@media (max-width: 768px) {
  .small-button {
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .small-button {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
  }
}

.btn-outline-light.small-button {
  border: 1px solid rgba(255,255,255,0.7);
  color: white;
  background: transparent;
}

.btn-outline-light.small-button:hover {
  background: rgba(255,255,255,0.15);
}

.btn-light.small-button {
  background: #ffffff;
  color: #5b21b6;
  border: none;
}

.btn-light.small-button:hover {
  background: #ede9fe;
}

body.login-body .login-container {
  flex: 1;
  display: flex;
  width: 100%;
  overflow: hidden;
  max-height: 100vh;
}

body.login-body .login-left {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
}

body.login-body .login-box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

body.login-body .login-box h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

body.login-body .login-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

body.login-body .validation-errors p {
  color: #fff;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

body.login-body .form-label {
  font-weight: 500;
  color: #f0f0f0;
}

body.login-body .form-control {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(255,255,255,0.3) !important;
  border-radius: 0 !important;
  color: #fff !important;
  padding: 0.15rem 0.2rem !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  transition: border-color 0.3s ease;
}

body.login-body .form-control:focus {
  border-bottom-color: #c1aff8 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

body.login-body .mb-3 {
  margin-bottom: 0.75rem !important;
}

body.login-body .login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 3rem;
}

body.login-body .submit-btn {
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.5s ease;
}

body.login-body .submit-btn:hover {
  background: rgba(255,255,255) !important;
  color: #5b21b6 !important;
}


body.twofactor-body .twofactor-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

body.twofactor-body .twofactor-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

body.twofactor-body .twofactor-box h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

body.twofactor-body .twofactor-box .text-white-50 {
  margin-bottom: 1rem;
}

body.twofactor-body .twofactor-box .form-control {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(255,255,255,0.3) !important;
  border-radius: 0 !important;
  color: #fff !important;
  padding: 0.3rem 0.2rem !important;
  font-size: 1rem !important;
  transition: border-color 0.3s ease;
}

body.twofactor-body .twofactor-box .form-control:focus {
  border-bottom-color: #c1aff8 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

body.twofactor-body .twofactor-box .submit-btn {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

body.twofactor-body .twofactor-box .submit-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #5b21b6 !important;
}


@media (max-width: 991px) {
  body.login-body .login-container,
  body.twofactor-body .twofactor-container {
    flex-direction: column;
    align-items: center;
  }
  body.login-body .login-left {
    width: 100%;
    padding: 2rem 1.5rem;
    align-items: flex-start;
  }
  body.login-body .login-right {
    display: none;
  }
}

@media (max-width: 1439.98px) {
  body.login-body .form-control {
    padding: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
    height: auto !important;
  }

  body.login-body .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  body.login-body .login-box p {
    margin-bottom: 0.6rem !important;
  }

  body.login-body .login-box {
    max-width: 575px;
  }

  body.login-body .login-box h1 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }
  body.login-body .submit-btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
  }

  body.login-body .login-left {
    padding: 2rem 1.5rem !important;
  }
}

body.login-body .form-control[type="file"] {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: #fff;
  font-size: 0.95rem;
}

body.login-body .form-control[type="file"]::-webkit-file-upload-button,
body.login-body .form-control[type="file"]::file-selector-button {
  all: unset;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 9999px;
  font: inherit;
  font-weight: 500;
  color: #5b21b6;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

body.login-body .form-control[type="file"]::-webkit-file-upload-button:hover,
body.login-body .form-control[type="file"]::file-selector-button:hover {
  background: #ede9fe;
}
