:root {
  --input-padding-x: 1.5rem;
  --input-padding-y: .75rem;
}

body {
  background-color: #f8f9fe;
}

.card-signin {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.card-signin .card-title {
  margin-bottom: 2rem;
  font-weight: 300;
  font-size: 1.5rem;
}

.card-signin .card-body {
  padding: 2rem;
}

.form-signin {
  width: 100%;
}

.form-signin .btn {
  font-size: 80%;
  border-radius: 5rem;
  letter-spacing: .1rem;
  font-weight: bold;
  padding: 1rem;
  transition: all 0.2s;
}

.form-label-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label-group input {
  height: auto;
  border-radius: 2rem;
}

.form-label-group>input,
.form-label-group>label {
  padding: var(--input-padding-y) var(--input-padding-x);
}

.form-label-group>label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  margin-bottom: 0;
  /* Override default `<label>` margin */
  line-height: 1.5;
  color: #495057;
  border: 1px solid transparent;
  border-radius: .25rem;
  transition: all .1s ease-in-out;
}

.form-label-group input::-webkit-input-placeholder {
  color: transparent;
}

.form-label-group input:-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-moz-placeholder {
  color: transparent;
}

.form-label-group input::placeholder {
  color: transparent;
}

.form-label-group input:not(:placeholder-shown) {
  padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
  padding-bottom: calc(var(--input-padding-y) / 3);
}

.form-label-group input:not(:placeholder-shown)~label {
  padding-top: calc(var(--input-padding-y) / 3);
  padding-bottom: calc(var(--input-padding-y) / 3);
  font-size: 12px;
  color: #777;
}

.btn-google {
  color: white;
  background-color: #ea4335;
}

.btn-facebook {
  color: white;
  background-color: #3b5998;
}

/* Tablet and Medium Screen Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 95%;
  }
  
  .card-signin .card-body {
    padding: 1.5rem;
  }
  
  .card-signin .card-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .form-signin .btn {
    font-size: 90%;
    padding: 0.8rem 1.5rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
  }
  
  /* Job cards optimization for tablet */
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .card.card-signin.my-2 {
    margin-bottom: 1rem !important;
  }
  
  /* Improve text readability on tablet */
  h4.text-dark {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  p[style*="font-size: 17px"] {
    font-size: 16px !important;
  }
  
  p[style*="font-size: 15px"] {
    font-size: 14px !important;
  }
  
  /* Better spacing for form elements */
  .form-signin input {
    margin-bottom: 0.75rem;
  }
  
  /* Improve button touch target */
  .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Large Tablet and Small Desktop */
@media (min-width: 1025px) and (max-width: 1200px) {
  .container {
    max-width: 90%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .card-signin .card-body {
    padding: 1.75rem;
  }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .card-signin .card-body {
    padding: 1rem;
  }
  
  .card-signin .card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .form-signin .btn {
    font-size: 85%;
    padding: 0.75rem 1rem;
  }
  
  .form-control {
    font-size: 16px;
    padding: 0.6rem 0.8rem;
  }
  
  /* Single column layout for mobile */
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  h4.text-dark {
    font-size: 1.1rem;
  }
  
  p[style*="font-size: 17px"] {
    font-size: 15px !important;
  }
  
  p[style*="font-size: 15px"] {
    font-size: 13px !important;
  }
}

/* Fallback for Edge
-------------------------------------------------- */

@supports (-ms-ime-align: auto) {
  .form-label-group>label {
    display: none;
  }
  .form-label-group input::-ms-input-placeholder {
    color: #777;
  }
}

/* Fallback for IE
-------------------------------------------------- */

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
  .form-label-group>label {
    display: none;
  }
  .form-label-group input:-ms-input-placeholder {
    color: #777;
  }
}