@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #1c577f;
  --primary-dark: #123456;
  --accent-color: #28c76f;
  --text-color: #333;
  --bg-color: #f4f5f7;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  background-color: var(--bg-color);
  /* Subtle background pattern or gradient */
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Preloader Styles for Login */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

.loader-text {
  font-family: var(--primary-font, 'Poppins', sans-serif);
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 1px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.login-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  background: var(--white);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.login-header {
  margin-bottom: 30px;
}

.login-logo {
  width: 170px;
  /* Adjust size as needed */
  height: auto;
  margin-bottom: 15px;
  border-radius: 50%;
  /* Optional: if logo looks good round */
}

.login-title {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-subtitle {
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #aaa;
  transition: color 0.3s;
}

.form-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  /* Space for icon */
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-color);
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #f9f9f9;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(28, 87, 127, 0.1);
  background-color: #fff;
}

.form-input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary-color);
}

.form-actions {
  margin-bottom: 25px;
}

.forgot-password {
  color: var(--primary-color);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(28, 87, 127, 0.2);
}

.btn-login:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-corporate-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-corporate-mail:hover {
  background-color: #f0f4f8;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
}