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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
}

.body_padding {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 50%, #162447 100%);
}

/* Animated Background */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 61, 131, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(27, 44, 81, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(37, 61, 131, 0.2) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-20px, -20px) rotate(1deg);
    }

    50% {
        transform: translate(20px, -10px) rotate(-1deg);
    }

    75% {
        transform: translate(-10px, 20px) rotate(0.5deg);
    }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite linear;
}

.floating-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 10%;
    top: 60%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.floating-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 70%;
    top: 10%;
    animation-delay: 10s;
    animation-duration: 18s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-40px) translateX(-10px) rotate(180deg);
        opacity: 0.5;
    }

    75% {
        transform: translateY(-20px) translateX(15px) rotate(270deg);
        opacity: 0.8;
    }
}


/* Main Container */
.login-wrapper,
.registration-wrapper,
.forgot-password-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: containerSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    height: auto;
}

@keyframes containerSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Left Panel - Branding */
.brand-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.03) 90deg,
            transparent 180deg,
            rgba(255, 255, 255, 0.03) 270deg,
            transparent 360deg);
    animation: rotateBackground 30s linear infinite;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: brandFadeIn 1.2s ease-out 0.3s both;
}

@keyframes brandFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-icon-container,
.brand-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
}


.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
    margin: 0 auto 2rem;
    font-weight: 400;
}
.brand-icon {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
      border: 2px solid rgba(255, 255, 255, 0.2);
      animation: iconFloat 6s ease-in-out infinite;
      position: relative;
      overflow: hidden;
}

  .brand-icon::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
      animation: iconShimmer 4s ease-in-out infinite;
  }

  @keyframes iconFloat {

      0%,
      100% {
          transform: translateY(0) rotate(0deg);
      }

      25% {
          transform: translateY(-10px) rotate(2deg);
      }

      50% {
          transform: translateY(-5px) rotate(0deg);
      }

      75% {
          transform: translateY(-10px) rotate(-2deg);
      }
  }

  @keyframes iconShimmer {

      0%,
      100% {
          transform: translateX(-100%) translateY(-100%);
      }

      50% {
          transform: translateX(100%) translateY(100%);
      }
  }

.brand-icon i {
    font-size: 3rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-features {
    text-align: left;
    max-width: 320px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.8;
    animation: featureSlideIn 0.6s ease-out both;
}

.feature-item:nth-child(1) {
    animation-delay: 0.8s;
}

.feature-item:nth-child(2) {
    animation-delay: 1s;
}

.feature-item:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes featureSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 0.8;
        transform: translateX(0);
    }
}

.feature-item i {
    margin-right: 0.75rem;
    font-size: 1rem;
    color: var(--light);
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Right Panel - Form */
.form-panel {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    overflow-y: auto;
    height: calc(100vh - 100px);
    justify-content: start;
}

.form-header {
    margin-bottom: 2rem;
    animation: formSlideIn 0.8s ease-out 0.4s both;
    /* text-align: center; */
}

@keyframes formSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


.form-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.form-logo img {
    height: 2.5rem;
    margin-right: 0.75rem;
}

.form-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.form-subtitle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-subtitle a:hover {
    color: var(--dark);
}


/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: alertSlideDown 0.5s ease-out;
}

@keyframes alertSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert i {
    margin-right: 0.5rem;
    font-size: 1rem;
}


/* Google Sign Up Button */
.google-signup {
    margin-bottom: 2rem;
    animation: formSlideIn 0.8s ease-out 0.6s both;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.6s;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #4285f4;
    background: #4285f4;
    color: var(--white);
}

.google-btn:hover::before {
    left: 100%;
}

.google-btn img {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
}

/* Social Login */
  .social-section {
      margin-bottom: 2rem;
      animation: formSlideIn 0.8s ease-out 0.6s both;
  }

  .social-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-bottom: 1rem;
  }

  .social-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.875rem 1rem;
      border: 2px solid var(--gray-200);
      border-radius: 12px;
      background: var(--white);
      color: var(--gray-700);
      text-decoration: none;
      font-weight: 600;
      font-size: 0.875rem;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
  }

  .social-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
      transition: left 0.6s;
  }

  .social-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary);
  }

  .social-btn:hover::before {
      left: 100%;
  }

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

  .google-btn:hover {
      background: #4285f4;
      color: var(--white);
      border-color: #4285f4;
  }

  .phone-btn:hover {
      background: var(--primary);
      color: var(--white);
      border-color: var(--primary);
  }

  .social-btn i {
      margin-right: 0.5rem;
      font-size: 1rem;
  }

  /* Divider */
  .divider {
      display: flex;
      align-items: center;
      margin: 1rem 0;
      color: var(--gray-500);
      font-size: 0.875rem;
      font-weight: 500;
  }

  .divider::before,
  .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
  }

  .divider span {
      padding: 0 1.5rem;
      background: var(--white);
  }


.form-section {
    animation: formSlideIn 0.8s ease-out 0.8s both;
}
.form-row {
    display: grid;
    /* grid-template-columns: 1fr 2fr; */
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-row.genFirstLast {
    grid-template-columns: 2fr 4fr 4fr;
}
.form-row-full {
    margin-bottom: 1.5rem;
}
.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}
.form-label.required::after {
    content: '*';
    color: var(--red);
    margin-left: 0.25rem;
}
.input-wrapper {
    position: relative;
}
.form-input,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-900);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 61, 131, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input.is-invalid,
.form-select.is-invalid {
    border-color: var(--red);
    animation: inputShake 0.5s ease-in-out;
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(182, 31, 37, 0.1);
}

@keyframes inputShake {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }
}

.invalid-feedback {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--red);
    font-weight: 500;
    animation: errorSlideIn 0.3s ease-out;
}
.invalid-feedback i {
      margin-right: 0.5rem;
  }
@keyframes errorSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Strength Meter */
.password-meter {
    margin-top: 0.5rem;
}

.password-strength {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-bar.active {
    background: var(--success);
}

.password-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}


/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
      color: var(--primary);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 600;
      transition: color 0.3s ease;
      position: relative;
  }

  .forgot-link::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: -2px;
      left: 0;
      background: var(--primary);
      transition: width 0.3s ease;
  }

  .forgot-link:hover {
      color: var(--dark);
  }

  .forgot-link:hover::after {
      width: 100%;
  }

  /* Submit Button */
  .submit-btn {
      width: 100%;
      background: linear-gradient(135deg, var(--primary), var(--dark));
      color: var(--white);
      border: none;
      border-radius: 12px;
      padding: 1rem 2rem;
      font-size: 1rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow-lg);
  }

  .submit-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.6s;
  }

  .submit-btn:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-xl);
  }

  .submit-btn:hover::before {
      left: 100%;
  }

  .submit-btn:active {
      transform: translateY(-1px);
  }

  .submit-btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
  }


  .btn-content {
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .btn-spinner {
      display: none;
      width: 1.25rem;
      height: 1.25rem;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: var(--white);
      animation: spin 1s linear infinite;
      margin-right: 0.5rem;
  }

  @keyframes spin {
      to {
          transform: rotate(360deg);
      }
  }

  /* Loading State */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn.loading .btn-spinner {
      display: block;
  }

  .submit-btn.loading .btn-text {
      display: none;
  }

  /* Footer */
  .form-footer {
      text-align: center;
      /* margin-top: 2rem; */
      padding-top: 1.5rem;
      /* border-top: 1px solid var(--gray-200); */
      animation: formSlideIn 0.8s ease-out 1s both;
  }

  .form-footer-text {
      color: var(--gray-600);
      font-size: 0.875rem;
      font-weight: 500;
  }

  .form-footer a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      margin-left: 0.25rem;
      transition: color 0.3s ease;
      position: relative;
  }

  .form-footer a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: -2px;
      left: 50%;
      background: var(--primary);
      transition: all 0.3s ease;
      transform: translateX(-50%);
  }

  .form-footer a:hover {
      color: var(--dark);
  }

  .form-footer a:hover::after {
      width: 100%;
  }




@media only screen and (max-width: 1024px) {
    .body_padding {
        justify-content: center;
        padding: 50px;
        overflow: auto;
    }
    .login-wrapper, .registration-wrapper {
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
   .body_padding {
    display: block;
  }
}

@media only screen and (max-width: 991px) {
  .body_padding {
    display: block;
  }
}

@media only screen and (max-width:767px) {
    .body_padding {
        padding: 20px;
    }
    .social-grid {
        grid-template-columns: 1fr;
    }
    .form-row.genFirstLast {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-row-half {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
