/* Custom Login Styles for HRCloud - Fitted to 1 Viewport Screen (No Scrollbar) */

:root {
  --primary: #007a3d;
  --primary-hover: #006331;
  --primary-light: #eaf7f1;
  --primary-border: #c5ebda;
  --dark-text: #111827;
  --heading-text: #007a3d;
  --body-text: #374151;
  --muted-text: #6b7280;
  --border-color: #e5e7eb;
  --bg-left: linear-gradient(135deg, #e4f4ec 0%, #d6eee2 50%, #ecf6f1 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body,
html {
  height: 100vh;
  width: 100vw;
  background-color: #ffffff;
  color: var(--dark-text);
  overflow: hidden;
}

.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Left Panel */
.left-panel {
  flex: 1.1;
  background-image: url('../images/login/bg-login.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 166, 81, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 10px;
}

.left-content {
  max-width: 540px;
  margin: 10px 0;
  z-index: 2;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: #007a3d;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-align: left;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #b4c70f;
  margin-bottom: 20px;
  text-align: left;
  max-width: 520px;
}

/* Feature Pills */
.feature-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 2;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0, 166, 81, 0.22);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--heading-text);
  box-shadow: 0 2px 8px rgba(0, 166, 81, 0.06);
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.feature-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Right Panel */
.right-panel {
  flex: 0.9;
  background: #ffffff;
  padding: 24px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dark-text);
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}

.lang-selector:hover {
  border-color: var(--primary);
}

.flag-icon {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.center-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.form-subtitle {
  font-size: 13.5px;
  color: var(--muted-text);
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}

.input-icon-right:hover {
  color: var(--dark-text);
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 10px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark-text);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.12);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 32px;
  font-size: 13.5px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--body-text);
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  border-radius: 4px;
  cursor: pointer;
}

.forgot-link {
  color: var(--body-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, #008f47 0%, #007a3d 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 122, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover {
  background: linear-gradient(180deg, #007c3e 0%, #006834 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 122, 61, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #9ca3af;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.divider span {
  padding: 0 10px;
}

.btn-sso {
  width: 100%;
  height: 42px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sso:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.sso-icon {
  width: 17px;
  height: 17px;
}

/* Security Banner Box */
.security-banner {
  width: 100%;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.security-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.security-text-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--heading-text);
}

.security-text-desc {
  font-size: 11px;
  color: var(--body-text);
  line-height: 1.35;
}

.security-lock-graphic {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  flex-shrink: 0;
}

.footer-text {
  font-size: 11.5px;
  color: var(--muted-text);
  text-align: center;
  margin-top: 10px;
}

/* Responsive Adjustments */
@media (min-width: 1400px) {
  .left-panel {
    padding: 40px 60px;
  }
  .right-panel {
    padding: 40px 80px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  .left-panel {
    padding: 24px 32px;
  }
  .right-panel {
    padding: 24px 36px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  body,
  html {
    overflow-y: auto !important;
    height: auto !important;
  }

  .login-container {
    flex-direction: column;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto;
  }

  .left-panel {
    flex: none;
    height: 280px;
    padding: 24px;
    background-position: center top;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13.5px;
    max-width: 100%;
  }

  .feature-pills {
    display: none;
  }

  .right-panel {
    flex: none;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 280px);
    padding: 32px 24px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .left-panel {
    display: none;
  }

  .right-panel {
    min-height: 100vh;
    padding: 28px 20px;
  }

  .form-wrapper {
    max-width: 100%;
    margin: auto 0;
  }

  .form-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .right-panel {
    padding: 20px 16px;
  }

  .center-logo img {
    max-height: 50px;
  }

  .form-title {
    font-size: 20px;
  }

  .form-input {
    height: 44px;
    font-size: 13.5px;
    padding: 8px 36px;
  }

  .btn-submit {
    height: 46px;
    font-size: 14.5px;
  }

  .form-options {
    font-size: 12px;
  }
}