/* Aaditya Axion Industries — Modern Split-Screen Login
   Inspired by Mantraksh Architecture with Industrial Engineering Theme
*/

:root {
  --brand-primary: #0256CC;
  /* Main Logo Blue */
  --brand-primary-hover: #0F3B8C;
  /* Deep Industrial Blue */
  --brand-primary-active: #013F99;
  /* Darker active blue state */
  --brand-accent: #F47B20;
  /* Logo Sun/Swoosh Orange */
  --brand-neutral-light: #F6F9FE;
  /* Clean soft white-blue background */
  --brand-white: #FFFFFF;
  --brand-dark: #0B1F36;
  /* Deep dark slate for text */
  --brand-text-muted: #64748B;
  --brand-border: #E2E8F0;
  --brand-focus-ring: rgba(2, 86, 204, 0.2);
  /* Soft blue focus glow */
  --font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: var(--font-family);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) fixed !important;
  color: var(--brand-dark);
  -webkit-font-smoothing: antialiased;
}

.login-page-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent !important;
  margin: 0;
  box-sizing: border-box;
}

.login-split-card {
  width: 100%;
  max-width: 1100px;
  min-height: 640px;
  background: var(--brand-white);
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  display: flex;
  overflow: hidden;
  border: 1px solid var(--brand-border);
}

/* LEFT PANEL: INDUSTRIAL ILLUSTRATION (52%) */
.login-left-panel {
  flex: 0 0 52%;
  max-width: 52%;
  background: linear-gradient(145deg, #F8FAFC 0%, #EEF2F6 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--brand-border);
  position: relative;
  overflow: hidden;
}

.login-left-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
}

.left-panel-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.left-panel-header p {
  font-size: 15px;
  color: var(--brand-text-muted);
  margin: 0;
  line-height: 1.5;
}

.left-panel-illustration {
  width: 100%;
  max-width: 480px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-panel-illustration img,
.left-panel-illustration svg {
  width: 100%;
  height: auto;
  max-height: 340px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.04));
}

.left-panel-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(205, 33, 58, 0.08);
  color: var(--brand-primary);
  letter-spacing: 0.02em;
}

.footer-descriptor {
  font-size: 13px;
  color: var(--brand-text-muted);
}

/* RIGHT PANEL: LOGIN FORM (48%) */
.login-right-panel {
  flex: 0 0 48%;
  max-width: 48%;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--brand-white);
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header .brand-logo {
  height: 10vh;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.form-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.form-header p {
  font-size: 14px;
  color: var(--brand-text-muted);
  margin: 0;
}

/* Form inputs & controls */
.form-group-custom {
  margin-bottom: 20px;
}

.form-label-custom {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

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

.input-icon-prefix {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.form-control-custom {
  width: 100%;
  height: 44px;
  padding: 10px 14px 10px 42px;
  font-size: 14px;
  color: #0F172A;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-focus-ring);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: #475569;
}

/* Checkbox & Helpers */
.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  cursor: pointer;
  border-radius: 4px;
}

.custom-checkbox-wrapper span {
  font-size: 13px;
  color: #475569;
}

/* Primary Button */
.btn-submit-primary {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.01em;
}

.btn-submit-primary:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 4px 12px rgba(205, 33, 58, 0.25);
}

.btn-submit-primary:active {
  background-color: var(--brand-primary-active);
  transform: translateY(1px);
}

/* Security Attribution Note */
.login-legal-note {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
}

.login-legal-note span {
  color: #64748B;
  font-weight: 500;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {

  html,
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .login-page-wrapper {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .login-split-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    min-height: auto;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .login-left-panel {
    display: none !important;
  }

  .login-right-panel {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding: 28px 18px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .login-page-wrapper {
    padding: 16px 12px;
  }

  .login-split-card {
    max-width: 100%;
  }

  .login-right-panel {
    padding: 28px 16px;
  }

  .form-header .brand-logo {
    height: 48px;
  }

  .form-header h1 {
    font-size: 20px;
  }

  .form-header p {
    font-size: 13px;
  }
}