/* ==================================================
   LOGIN PAGE STYLES - PGR ANGOLA
   50-50 Split Layout with Floating Labels
   ================================================== */

/* Import Urbanist Font */
@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&display=swap");

/* ==================================================
   CSS VARIABLES
   ================================================== */
:root {
  /* Colors */
  --color-primary: #7F0723;
  --color-accent: #BF284B;
  --color-white: #FFFFFF;
  --color-black: #121216;
  --color-text-950: #0D0D0D;
  --color-text-500: #808080;
  --color-text-200: #D6D6D6;

  /* Typography */
  --font-primary: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

/* ==================================================
   GLOBAL RESET
   ================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-white);
  overflow-x: hidden;
}

/* ==================================================
   LOGIN PAGE LAYOUT (50-50 Split)
   ================================================== */
.login-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==================================================
   LEFT COLUMN - 50%
   ================================================== */
.login-left-column {
  width: 50%;
  min-height: 100vh;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  padding: 0 100px;
  position: relative;
}

/* Logo */
.login-logo {
  padding-top: 30px;
  margin-bottom: 80px;
}

.login-logo .logo-img {
  height: 80px;
  width: auto;
}

/* Login Card */
.login-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: 60px;
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Login Header */
.login-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.login-subtitle {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text-950);
  margin: 0;
}

/* ==================================================
   FORM STYLES WITH FLOATING LABELS
   ================================================== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* .login-form-content {
  width: 530px;
} */

.form-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Custom Form Group */
.custom-form-group {
  position: relative;
  width: 100%;
}

.input-text-wrapper {
  position: relative;
  margin-bottom: 0;
}

/* Form Control (Input Field) */
.form-control {
  width: 100%;
  height: 68px;
  padding: 16px 24px 5px 56px;
  border: 1px solid var(--color-text-200);
  border-radius: 12px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-950);
  background: var(--color-white);
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-accent);
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label,
.form-control.filled ~ .form-label {
  top: -10px;
  left: 20px;
  font-size: 12px;
  background: var(--color-white);
  padding: 0 6px;
  color: var(--color-accent);
}

/* Form Icon (Positioned in the middle left) */
.form-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-500);
  pointer-events: none;
  z-index: 1;
  transition: color 0.3s ease;
}

.custom-form-group:focus-within .form-icon {
  color: var(--color-accent);
}

/* Form Label (Floating) */
.form-label {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-500);
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0;
}

/* ==================================================
   BUTTONS
   ================================================== */
/* Login Button */
.login-button-wrapper {
  width: 100%;
}

.login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  height: 50px;
  background: var(--color-accent);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xs);

  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
}

.login-btn:hover:not(:disabled) {
  background: #a0213d;
  transform: translateY(-1px);
  box-shadow: 0px 4px 8px 0px rgba(16, 24, 40, 0.1);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Back Button */
.back-button-wrapper {
  width: 100%;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-500);
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--color-accent);
}

.back-btn svg {
  transition: transform 0.3s ease;
}

.back-btn:hover svg {
  transform: translateX(-4px);
}

/* ==================================================
   FORM EXTRAS
   ================================================== */
/* Divider */
.login-divider {
  width: 100%;
  height: 1px;
  background: var(--color-text-200);
}

/* Support Text */
.login-support-text {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-text-950);
  margin: 24px 0 0;
}

/* ==================================================
   FOOTER
   ================================================== */
.login-footer {
  margin-top: auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-footer-social {
  display: flex;
  gap: 10px;
}

.login-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.login-footer-copyright, .login-footer-copyright a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.67;
  color: var(--color-white);
  opacity: 0.6;
  margin: 0;
}

/* ==================================================
   RIGHT COLUMN - 50%
   ================================================== */
.login-right-column {
  width: 50%;
  min-height: 100vh;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.decorative-image {
  width: 100%;
  max-width: 528px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decorative-image img {
  width: 100%;
  height: auto;
  max-height: 528px;
  object-fit: contain;
}

/* ==================================================
   RESPONSIVE STYLES
   ================================================== */

/* 1200px Breakpoint - Optimized for 1200px screens */
@media (max-width: 1200px) {
  .login-left-column {
    padding: 0 80px;
  }

  .login-logo {
    padding-top: 24px;
    margin-bottom: 60px;
  }

  .login-logo .logo-img {
    height: 64px;
  }

  .login-card {
    padding: 48px;
    max-width: 520px;
    gap: 32px;
  }

  .login-header {
    gap: 12px;
  }

  .login-title {
    font-size: 40px;
    letter-spacing: -0.015em;
  }

  .login-subtitle {
    font-size: 15px;
  }

  .login-form {
    gap: 24px;
  }

  .login-form-content {
    width: 100%;
    max-width: 424px;
  }

  .form-step {
    gap: 20px;
  }

  .form-control {
    height: 60px;
    padding: 14px 20px 0px 52px;
    font-size: 16px;
    border-radius: 10px;
  }

  .form-icon {
    left: 20px;
    width: 18px;
    height: 18px;
  }

  .form-label {
    left: 52px;
    font-size: 16px;
  }

  .form-control:focus ~ .form-label,
  .form-control:not(:placeholder-shown) ~ .form-label,
  .form-control.filled ~ .form-label {
    top: -9px;
    left: 18px;
    font-size: 11px;
    padding: 0 5px;
  }

  .login-btn {
    height: 46px;
    padding: 10px 20px;
    gap: 12px;
    font-size: 15px;
  }

  .login-divider {
    margin: 4px 0;
  }

  .login-support-text {
    font-size: 16px;
  }

  .back-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .login-footer {
    padding: 32px 0;
    gap: 14px;
  }

  .login-social-icon {
    width: 36px;
    height: 36px;
  }

  .login-social-icon svg {
    width: 18px;
    height: 18px;
  }

  .login-footer-copyright {
    font-size: 11px;
  }

  .login-right-column {
    padding: 32px;
  }

  .decorative-image {
    max-width: 420px;
  }

  .decorative-image img {
    max-height: 420px;
  }
}

/* 992px Breakpoint - Tablet */
@media (max-width: 992px) {
  .login-page {
    flex-direction: column;
  }

  .login-left-column {
    width: 100%;
    min-height: auto;
    padding: 40px 30px;
  }

  .login-right-column {
    width: 100%;
    min-height: 300px;
    padding: 60px 30px;
    display: none;
  }

  .login-logo {
    margin-bottom: 40px;
    text-align: center;
  }

  .login-card {
    max-width: 100%;
    padding: 40px 30px;
  }

  .login-title {
    font-size: 36px;
  }

  .login-footer {
    padding: 30px 0;
  }

  .decorative-image {
    max-width: 350px;
  }
}

/* 768px Breakpoint - Mobile */
@media (max-width: 768px) {
  .login-left-column {
    padding: 30px 20px;
    height: 100vh;
  }

  .login-logo .logo-img {
    height: 60px;
  }

  .login-card {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .login-title {
    font-size: 28px;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .form-control {
    height: 56px;
    font-size: 16px;
    padding: 14px 20px 0px 52px;
  }

  .form-icon {
    left: 20px;
  }

  .form-label {
    left: 52px;
    font-size: 16px;
  }

  .login-btn {
    height: 48px;
    font-size: 14px;
  }

  .login-support-text {
    font-size: 14px;
  }

  .login-footer-social {
    justify-content: center;
  }

  .login-footer-copyright {
    text-align: center;
  }

  .login-right-column {
    display: none;
  }

  .decorative-image {
    max-width: 280px;
  }
}

/* 576px Breakpoint - Small Mobile */
@media (max-width: 576px) {
  .login-left-column {
    padding: 20px 15px;
  }

  .login-logo .logo-img {
    height: 50px;
  }

  .login-card {
    padding: 25px 15px;
  }

  .login-title {
    font-size: 24px;
  }

  .form-control {
    height: 52px;
    font-size: 15px;
  }

  .login-btn {
    height: 46px;
  }

  .decorative-image {
    max-width: 240px;
  }
}
