/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: #F2F5F8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 48px;
}

.logo-text {
  font-size: 20px;
  font-weight: 400;
  color: #6c757d;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Container */
.container {
  text-align: center;
  max-width: 480px;
  width: 100%;
  position: relative;
}

/* Heading */
h1 {
  font-size: 31.5px;
  font-weight: 500;
  color: #444444;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Subheading */
.subheading {
  font-size: 13.5px;
  font-weight: 300;
  color: #444444;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form */
.sign-in-form {
  display: flex;
  gap: 9px;
}

.form-group {
  width: 70%;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

/* Input */
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #fff;
  color: #495057;
}

input[type="email"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input[type="email"]::placeholder {
  color: #adb5bd;
}

/* Button */
.btn-primary {
  padding: 12px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Messages */
.message {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Footer */
.footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: #6c757d;
}

.footerLink {
    font-size: 13.5px;
    font-weight: 300;
    color:#525C6A;
    display: flex;
    gap: 20px;
}

.footerLink a {
   color: #525C6A;
   text-decoration: none;
}

.footer-divider {
  color:#525C6A;
}

/* Helper text */
.helper-text {
  font-size: 13px;
  color: #6c757d;
  margin-top: 16px;
  line-height: 1.4;
}

/* Loading state */
.loading {
  pointer-events: none;
}

.loading .btn-primary {
  position: relative;
  color: transparent;
}

.loading .btn-primary::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 576px) {
  .container {
    padding: 32px 24px;
  }

  h1 {
    font-size: 20px;
  }

  .subheading {
    font-size: 13px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }

  .footer-divider {
    display: none;
  }
}
