/* ========================================
   Rapidtack Login Page Styles
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #ecf0f3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login Wrapper - Neumorphic Design */
.wrapper {
  max-width: 380px;
  min-height: 500px;
  margin: 80px auto;
  padding: 40px 30px 30px 30px;
  background-color: #ecf0f3;
  border-radius: 15px;
  box-shadow: 13px 13px 20px #cbced1, -13px -13px 20px #fff;
}

/* Logo Container */
.logo {
  width: 80px;
  margin: auto;
}

.logo img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0px 0px 3px #5f5f5f,
    0px 0px 0px 5px #ecf0f3,
    8px 8px 15px #a7aaa7,
    -8px -8px 15px #fff;
}

/* Title */
.wrapper .name {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 1.3px;
  padding-left: 10px;
  color: #555;
}

/* Form Fields - Neumorphic Input */
.wrapper .form-field {
  padding-left: 10px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px 8px #fff;
}

.wrapper .form-field input {
  width: 100%;
  display: block;
  border: none;
  outline: none;
  background: none;
  font-size: 1.2rem;
  color: #666;
  padding: 10px 15px 10px 10px;
}

.wrapper .form-field input::placeholder {
  color: #999;
}

.wrapper .form-field input:focus {
  color: #333;
}

/* Form Field Icons */
.wrapper .form-field .fas,
.wrapper .form-field .far {
  color: #555;
  padding-right: 10px;
}

/* Login Button */
.wrapper .btn {
  box-shadow: none;
  width: 100%;
  height: 40px;
  background-color: #03A9F4;
  color: #fff;
  border-radius: 25px;
  box-shadow:
    3px 3px 3px #b1b1b1,
    -3px -3px 3px #fff;
  letter-spacing: 1.3px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.wrapper .btn:hover {
  background-color: #039BE5;
  transform: translateY(-2px);
  box-shadow:
    5px 5px 10px #b1b1b1,
    -5px -5px 10px #fff;
}

.wrapper .btn:active {
  transform: translateY(0);
  box-shadow:
    3px 3px 3px #b1b1b1,
    -3px -3px 3px #fff;
}

/* Links */
.wrapper a {
  text-decoration: none;
  font-size: 0.8rem;
  color: #03A9F4;
}

.wrapper a:hover {
  color: #039BE5;
}

/* Messages Container */
#messages_div {
  background: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: inset 4px 4px 8px #e6d8a8, inset -4px -4px 8px #fff;
}

/* Responsive Design */
@media (max-width: 380px) {
  .wrapper {
    margin: 30px 20px;
    padding: 40px 15px 15px 15px;
  }
}

/* Additional Enhancements */
.wrapper form {
  width: 100%;
}

/* Animated Focus State */
.wrapper .form-field:focus-within {
  box-shadow:
    inset 6px 6px 6px #cbced1,
    inset -6px -6px 6px #fff,
    0 0 0 3px rgba(3, 169, 244, 0.1);
}

/* Loading State for Button */
.wrapper .btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.wrapper .btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
