* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {

  font-family: "Product Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #202124;
  color: #e8eaed;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.logo-img {
  height: 85px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(66,133,244,0.12));
  transition: transform 0.2s;
}
.logo-text {
  background: linear-gradient(90deg, #4285F4 0%, #EA4335 25%, #FBBC04 50%, #34A853 75%, #4285F4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  padding: 0 16px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  filter: drop-shadow(0 1px 2px rgba(66,133,244,0.10));
}

.logo a {
  text-decoration: none;
}

.logo a:hover .logo-text {
  transform: translateY(-1px);
  transition: all 0.3s ease;
  opacity: 0.9;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.signin-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.signin-form-wrapper {
  background: #292a2d;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: 1px solid #3c4043;
}

.signin-title {
  font-size: 28px;
  font-weight: 600;
  color: #e8eaed;
  margin-bottom: 40px;
  text-align: center;
}

/* Form Styles */
.signin-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #3c4043;
  border-radius: 8px;
  font-size: 16px;
  background: #202124;
  color: #e8eaed;
  transition: all 0.3s ease;
  outline: none;
}

.input-wrapper input:focus {
  border-color: #4285f4;
  background: #292a2d;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.input-wrapper input.error {
  border-color: #ea4335;
  background: rgba(234, 67, 53, 0.1);
}

.input-wrapper input.success {
  border-color: #34a853;
  background: rgba(52, 168, 83, 0.1);
}

/* Input Icons */
.input-icon {
  position: absolute;
  left: 15px;
  width: 20px;
  height: 20px;
  z-index: 2;
}

.user-icon {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234285F4' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.lock-icon {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234285F4' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 2;
}

.eye-icon {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239aa0a6' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  display: block;
}

/* Sign In Button */
.signin-btn {
  width: 100%;
  background: #34a853;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 1px 3px rgba(52, 168, 83, 0.3);
}

.signin-btn:hover {
  background: #2d9249;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 168, 83, 0.4);
}

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

.signin-btn:disabled {
  background: #5f6368;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

.signin-btn.loading .btn-text {
  opacity: 0.7;
}

.signin-btn.loading .btn-loader {
  display: block;
}

/* Form Links */
.form-links {
  margin-bottom: 25px;
}

.forgot-link {
  color: #4285f4;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #5a95f5;
  text-decoration: underline;
}

/* Sign Up Prompt */
.signup-prompt {
  color: #9aa0a6;
  font-size: 14px;
}

.signup-link {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: #5a95f5;
  text-decoration: underline;
}

/* Messages */
.message-container {
  margin-top: 20px;
}

.message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  display: none;
}

.message.success {
  background: rgba(52, 168, 83, 0.2);
  color: #34a853;
  border: 1px solid #34a853;
  display: block;
}

.message.error {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
  border: 1px solid #ea4335;
  display: block;
}

/* Footer */
.footer {
  background: #171717;
  color: #e8eaed;
  padding: 20px 0;
  margin-top: auto;
  border-top: 1px solid #3c4043;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9aa0a6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4285f4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header {
    padding: 15px 0;
  }

  .logo-text {
    font-size: 14px;
    padding: 6px 12px;
  }

  .main-content {
    padding: 20px 0;
    min-height: calc(100vh - 160px);
  }

  .signin-form-wrapper {
    padding: 30px 20px;
    margin: 20px 10px;
    border-radius: 8px;
  }

  .signin-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .input-wrapper input {
    padding: 14px 14px 14px 45px;
    font-size: 16px;
    border-radius: 6px;
  }

  .signin-btn {
    padding: 14px 25px;
    font-size: 15px;
    border-radius: 20px;
  }

  .footer-links {
    gap: 15px;
    text-align: center;
    flex-direction: column;
  }

  .footer-links a {
    font-size: 13px;
    display: block;
    padding: 5px 0;
  }
}

@media (max-width: 480px) {
  .signin-form-wrapper {
    margin: 10px 5px;
    padding: 25px 15px;
  }

  .signin-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .input-wrapper input {
    padding: 12px 12px 12px 40px;
    font-size: 15px;
  }

  .input-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  .password-toggle {
    right: 12px;
  }

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

  .signin-btn {
    padding: 12px 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .forgot-link,
  .signup-prompt {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .signin-form-wrapper {
    margin: 5px;
    padding: 20px 12px;
  }

  .signin-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .input-wrapper input {
    padding: 10px 10px 10px 35px;
    font-size: 14px;
  }

  .input-icon {
    left: 10px;
    width: 14px;
    height: 14px;
  }

  .password-toggle {
    right: 10px;
  }

  .signin-btn {
    padding: 10px 15px;
    font-size: 13px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .signin-btn:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
  }

  .input-wrapper input:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
  }

  .password-toggle {
    padding: 8px;
    min-width: 32px;
    min-height: 32px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
  }

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}
