/* HR Portal Login Styles */

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

body {
  font-family: "Manrope", sans-serif;
  background: url("../images/hr-login-bg.png") no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 32px;
  padding: 48px 48px 44px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

/* Logo */
.logo-section {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.logo img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

/* Welcome Section */
.welcome-section {
  text-align: left;
  margin-bottom: 28px;
}

.welcome-section h1 {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.welcome-section p {
  font-size: 15px;
  color: #4a4a4a;
}

/* Role Tabs */
.role-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}

.role-tab {
  padding: 8px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: #7a7a7a;
  cursor: pointer;
  transition: all 0.25s;
}

.role-tab:hover {
  color: #1f1f1f;
}

.role-tab.active {
  color: #1f1f1f;
  border-color: #1f1f1f;
}

/* Login Form */
.login-form {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #2d3436;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e4e7;
  border-radius: 24px;
  font-size: 15px;
  font-family: "Figtree", sans-serif;
  color: #2d3436;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #2d3436;
  box-shadow: 0 0 0 3px rgba(45, 52, 54, 0.1);
}

.form-group input::placeholder {
  color: #b0b0b0;
}

/* Login Button */
.login-btn {
  align-self: flex-end;
  padding: 12px 26px;
  background: transparent;
  border: 1.5px solid #1f1f1f;
  border-radius: 24px;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.login-btn:hover {
  background: #1f1f1f;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

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

/* Forgot Password */
.forgot-password {
  text-align: center;
  margin-top: 8px;
}

.forgot-password a {
  color: #676767;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.forgot-password a:hover {
  color: #2d3436;
}

/* Error Message */
.error-message {
  background: #ffe5e5;
  border: 1px solid #ff6b6b;
  color: #d63031;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Success Message */
.success-message {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.success-message.show {
  display: block;
}

/* Loading State */
.login-btn.loading {
  background: #b0b0b0;
  cursor: not-allowed;
}

.login-btn.loading::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {

  0%,
  20% {
    content: ".";
  }

  40% {
    content: "..";
  }

  60%,
  100% {
    content: "...";
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-card {
    padding: 32px 24px;
  }

  .welcome-section h1 {
    font-size: 28px;
  }

  .role-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .login-btn {
    align-self: stretch;
    text-align: center;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 32px;
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  text-align: center;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  color: #ffa5a5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.modal-title {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 14px;
  color: #636e72;
  line-height: 1.5;
  margin-bottom: 24px;
}

.credential-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 24px;
  text-align: left;
  font-family: "Figtree", sans-serif;
  font-size: 13px;
  color: #2d3436;
}

.credential-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: "Figtree", sans-serif;
}

.credential-row:last-child {
  margin-bottom: 0;
}

.credential-label {
  color: #b2bec3;
}

.modal-close-btn {
  width: 100%;
  padding: 12px;
  background: #2d3436;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: #000;
}

.modal-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e0e4e7;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Figtree", sans-serif;
  color: #2d3436;
  transition: all 0.3s;
}

.modal-input:focus {
  outline: none;
  border-color: #2d3436;
  background: #fdfdfd;
}

.modal-action-btn {
  padding: 0 20px;
  background: #2d3436;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.modal-action-btn:hover {
  background: #000;
}

.modal-feedback {
  font-size: 13px;
  color: #d63031;
  margin-bottom: 16px;
  min-height: 20px;
}