/*====================================================

    Trading Empire Authentication UI
    Author : ChatGPT
    Version : 1.0

======================================================*/

/*==============================
        GOOGLE FONT
===============================*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/*==============================
        ROOT VARIABLES
===============================*/

:root {
  --primary: #d4af37;
  --primary-light: #f2d16b;
  --primary-dark: #9d7b12;

  --dark: #050505;
  --dark-2: #111111;
  --dark-3: #1a1a1a;

  --white: #ffffff;
  --gray: #d4d4d4;
  --text: #9b9b9b;

  --glass: rgba(255, 255, 255, 0.05);

  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  --radius: 18px;

  --transition: 0.35s ease;
}

/*==============================
        RESET
===============================*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;

  background: #000;

  color: #fff;

  overflow-x: hidden;
}

/*==============================
        LINKS
===============================*/

a {
  text-decoration: none;

  transition: 0.3s;
}

img {
  max-width: 100%;

  display: block;
}

/*==============================
        BUTTON
===============================*/

button {
  border: none;

  outline: none;

  cursor: pointer;

  font-family: "Poppins", sans-serif;
}

/*==============================
        INPUT
===============================*/

input {
  outline: none;

  border: none;

  font-family: "Poppins", sans-serif;
}

/*==============================
        MAIN LAYOUT
===============================*/

body {
  display: flex;

  min-height: 100vh;
}

/*==============================
        LEFT PANEL
===============================*/

.left-panel {
  width: 50%;

  position: relative;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.75)),
    url("../images/bg.jpg");

  background-size: cover;

  background-position: center;
}

.overlay {
  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.18),
    transparent 70%
  );
}

.hero-content {
  position: relative;

  z-index: 5;

  width: 75%;
}

.hero-content h1 {
  font-size: 58px;

  font-weight: 800;

  line-height: 1.2;

  margin-bottom: 25px;
}

.hero-content p {
  font-size: 18px;

  color: #d7d7d7;

  line-height: 34px;
}

/*==============================
        RIGHT PANEL
===============================*/

.right-panel {
  width: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  background: linear-gradient(135deg, #050505, #151515);
}

/*==============================
        LOGIN CARD
===============================*/

.login-card {
  width: 470px;

  max-width: 90%;

  padding: 55px;

  background: var(--glass);

  border: 1px solid var(--glass-border);

  backdrop-filter: blur(18px);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  animation: fadeIn 0.8s ease;
}

/*==============================
        LOGO
===============================*/

.logo {
  width: 90px;

  height: 90px;

  margin: auto;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(135deg, var(--primary), #ffe28a);

  color: #000;

  font-size: 35px;

  margin-bottom: 25px;

  box-shadow: 0 0 30px rgba(212, 175, 55, 0.45);
}

.login-card h2 {
  text-align: center;

  font-size: 34px;

  margin-bottom: 8px;
}

.subtitle {
  text-align: center;

  color: #bdbdbd;

  margin-bottom: 35px;
}

/*==============================
        FORM
===============================*/

form {
  width: 100%;
}

/*==============================
        INPUT GROUP
===============================*/

.input-group {
  position: relative;

  margin-bottom: 24px;
}

.input-group label {
  display: block;

  margin-bottom: 10px;

  font-size: 14px;

  color: #cfcfcf;
}

.input-group input {
  width: 100%;

  height: 58px;

  background: #101010;

  border: 1px solid #2b2b2b;

  border-radius: 12px;

  padding-left: 50px;

  padding-right: 55px;

  color: #fff;

  font-size: 15px;

  transition: var(--transition);
}

.input-group input::placeholder {
  color: #777;
}

.input-group input:focus {
  border-color: var(--primary);

  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

/*==============================
        INPUT ICONS
===============================*/

.input-group i {
  position: absolute;

  left: 18px;

  top: 46px;

  color: var(--primary);

  font-size: 16px;
}

.togglePassword {
  position: absolute;

  right: 18px;

  top: 43px;

  cursor: pointer;

  color: #aaa;
}

.togglePassword:hover {
  color: var(--primary);
}
/*====================================================
        PART 2
        BUTTONS • OPTIONS • DIVIDER • BACKGROUND
======================================================*/

/*==============================
        REMEMBER / FORGOT
===============================*/

.options {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 30px;

  font-size: 14px;
}

.options label {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #cfcfcf;

  cursor: pointer;
}

.options input[type="checkbox"] {
  width: 16px;

  height: 16px;

  accent-color: var(--primary);

  cursor: pointer;
}

.options a {
  color: var(--primary);

  font-weight: 500;
}

.options a:hover {
  color: var(--primary-light);
}

/*==============================
        LOGIN BUTTON
===============================*/

.login-btn {
  width: 100%;

  height: 58px;

  border-radius: 14px;

  background: linear-gradient(135deg, var(--primary), #f7d774);

  color: #000;

  font-size: 16px;

  font-weight: 700;

  letter-spacing: 0.4px;

  transition: var(--transition);

  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);

  position: relative;

  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.45);
}

.login-btn:active {
  transform: scale(0.98);
}

/* Gold shine animation */

.login-btn::before {
  content: "";

  position: absolute;

  top: 0;

  left: -120%;

  width: 60%;

  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );

  transform: skewX(-25deg);
}

.login-btn:hover::before {
  animation: shine 1.2s linear;
}

/*==============================
        DIVIDER
===============================*/

.divider {
  display: flex;

  align-items: center;

  margin: 35px 0;
}

.divider::before,
.divider::after {
  content: "";

  flex: 1;

  height: 1px;

  background: #333;
}

.divider span {
  margin: 0 15px;

  color: #8f8f8f;

  font-size: 13px;

  letter-spacing: 2px;
}

/*==============================
        GOOGLE BUTTON
===============================*/

.google-btn {
  width: 100%;

  height: 56px;

  border-radius: 14px;

  border: 1px solid #2f2f2f;

  background: #121212;

  color: #fff;

  font-size: 15px;

  font-weight: 500;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  transition: var(--transition);
}

.google-btn i {
  font-size: 18px;

  color: #ea4335;
}

.google-btn:hover {
  background: #1d1d1d;

  border-color: var(--primary);

  transform: translateY(-2px);
}

/*==============================
        SIGNUP LINK
===============================*/

.signup-link {
  margin-top: 30px;

  text-align: center;

  color: #a6a6a6;

  font-size: 15px;
}

.signup-link a {
  color: var(--primary);

  font-weight: 700;

  margin-left: 5px;
}

.signup-link a:hover {
  color: var(--primary-light);
}

/*==============================
        FLOATING BACKGROUND
===============================*/

.background {
  position: fixed;

  inset: 0;

  overflow: hidden;

  z-index: -1;

  background: radial-gradient(
      circle at top left,

      rgba(212, 175, 55, 0.12),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,

      rgba(212, 175, 55, 0.08),
      transparent 40%
    ),
    #050505;
}

/* Floating circles */

.background span {
  position: absolute;

  display: block;

  border-radius: 50%;

  background: rgba(212, 175, 55, 0.08);

  animation: float 22s linear infinite;
}

/* Individual sizes */

.background span:nth-child(1) {
  width: 120px;

  height: 120px;

  left: 10%;

  top: 80%;

  animation-duration: 20s;
}

.background span:nth-child(2) {
  width: 80px;

  height: 80px;

  left: 35%;

  top: 95%;

  animation-duration: 18s;
}

.background span:nth-child(3) {
  width: 180px;

  height: 180px;

  left: 65%;

  top: 85%;

  animation-duration: 28s;
}

.background span:nth-child(4) {
  width: 60px;

  height: 60px;

  left: 85%;

  top: 90%;

  animation-duration: 15s;
}

.background span:nth-child(5) {
  width: 150px;

  height: 150px;

  left: 50%;

  top: 100%;

  animation-duration: 25s;
}

/*==============================
        HOVER EFFECTS
===============================*/

.login-card:hover {
  transform: translateY(-6px);

  transition: 0.45s;

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 175, 55, 0.12);
}

/*==============================
        TEXT SELECTION
===============================*/

::selection {
  background: var(--primary);

  color: #000;
}

/*==============================
        SCROLLBAR
===============================*/

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/*==============================
        KEYFRAMES
===============================*/

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: translateY(35px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes float {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(-1200px) rotate(360deg);
  }
}

@keyframes shine {
  from {
    left: -120%;
  }

  to {
    left: 150%;
  }
}

/*==============================
        LOADING STATE
===============================*/

.login-btn.loading {
  pointer-events: none;

  opacity: 0.85;
}

.login-btn.loading span {
  visibility: hidden;
}

.login-btn.loading::after {
  content: "";

  position: absolute;

  width: 22px;

  height: 22px;

  border: 3px solid rgba(0, 0, 0, 0.2);

  border-top-color: #000;

  border-radius: 50%;

  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/*====================================================
        PART 3
        PREMIUM EFFECTS • VALIDATION • UTILITIES
======================================================*/

/*==============================
        GLASS ENHANCEMENTS
===============================*/

.login-card {
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

.login-card::after {
  content: "";
  position: absolute;
  left: -35%;
  bottom: -35%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04),
    transparent 70%
  );
  pointer-events: none;
}

/*==============================
        HERO ANIMATION
===============================*/

.hero-content h1 {
  animation: slideUp 0.9s ease;
}

.hero-content p {
  animation: slideUp 1.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;

    transform: translateY(40px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/*==============================
        HERO HIGHLIGHT
===============================*/

.hero-content h1 span {
  color: var(--primary);
}

/*==============================
        INPUT VALIDATION
===============================*/

.input-group.success input {
  border-color: #16c784;

  box-shadow: 0 0 15px rgba(22, 199, 132, 0.2);
}

.input-group.error input {
  border-color: #ff4d4f;

  box-shadow: 0 0 15px rgba(255, 77, 79, 0.18);
}

/*==============================
        ERROR MESSAGE
===============================*/

.error-text {
  color: #ff6666;

  font-size: 13px;

  margin-top: 8px;

  display: none;
}

.input-group.error .error-text {
  display: block;
}

/*==============================
        SUCCESS MESSAGE
===============================*/

.success-text {
  color: #16c784;

  font-size: 13px;

  margin-top: 8px;
}

/*==============================
        INPUT TRANSITIONS
===============================*/

.input-group input {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.input-group input:focus {
  transform: translateY(-2px);
}

/*==============================
        PLACEHOLDER
===============================*/

input::placeholder {
  transition: 0.3s;
}

input:focus::placeholder {
  opacity: 0.45;
}

/*==============================
        LOGO HOVER
===============================*/

.logo {
  transition: 0.4s;
}

.logo:hover {
  transform: rotate(10deg) scale(1.08);
}

/*==============================
        TOAST
===============================*/

.toast {
  position: fixed;

  top: 30px;

  right: 30px;

  min-width: 280px;

  background: #111;

  border-left: 5px solid var(--primary);

  padding: 18px;

  border-radius: 12px;

  color: #fff;

  box-shadow: var(--shadow);

  transform: translateX(420px);

  opacity: 0;

  transition: 0.4s;

  z-index: 9999;
}

.toast.show {
  transform: translateX(0);

  opacity: 1;
}

.toast.success {
  border-left-color: #16c784;
}

.toast.error {
  border-left-color: #ff4d4f;
}

/*==============================
        GLOW ORBS
===============================*/

.glow-orb {
  position: absolute;

  border-radius: 50%;

  filter: blur(60px);

  pointer-events: none;
}

.glow-orb.gold {
  width: 220px;

  height: 220px;

  background: rgba(212, 175, 55, 0.18);

  top: -80px;

  left: -80px;
}

.glow-orb.white {
  width: 180px;

  height: 180px;

  background: rgba(255, 255, 255, 0.05);

  bottom: -60px;

  right: -60px;
}

/*==============================
        SMALL UTILITIES
===============================*/

.text-center {
  text-align: center;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-20 {
  margin-bottom: 20px;
}

.w-100 {
  width: 100%;
}

/*==============================
        FADE HELPERS
===============================*/

.fade-in {
  animation: fadeIn 0.7s ease;
}

.fade-up {
  animation: slideUp 0.7s ease;
}

/*==============================
        FOOTER
===============================*/

.auth-footer {
  margin-top: 35px;

  text-align: center;

  font-size: 13px;

  color: #777;
}

.auth-footer a {
  color: var(--primary);
}

.auth-footer a:hover {
  color: var(--primary-light);
}

/*==============================
        ACCESSIBILITY
===============================*/

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);

  outline-offset: 3px;
}

/*==============================
        REDUCED MOTION
===============================*/

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }
}
/*====================================================
    PART 4
    FINAL POLISH • HELPERS • COMPONENT STATES
======================================================*/

/*==============================
    BUTTON STATES
==============================*/

.login-btn:disabled,
.google-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-btn:focus,
.google-btn:focus {
  outline: none;
}

/*==============================
    INPUT STATES
==============================*/

.input-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.input-group input:read-only {
  background: #151515;
}

/*==============================
    PASSWORD TOGGLE
==============================*/

.togglePassword {
  transition: 0.3s;
}

.togglePassword:hover {
  transform: scale(1.1);
}

/*==============================
    CARD TRANSITIONS
==============================*/

.login-card,
.login-btn,
.google-btn,
input,
a {
  transition: all 0.35s ease;
}

/*==============================
    PAGE FADE
==============================*/

body {
  animation: pageFade 0.7s ease;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*==============================
    PREMIUM GOLD BORDER
==============================*/

.login-card {
  background-image: linear-gradient(#101010, #101010),
    linear-gradient(135deg, rgba(212, 175, 55, 0.45), rgba(255, 255, 255, 0.06));

  background-origin: border-box;

  background-clip: padding-box, border-box;
}

/*==============================
    HERO HIGHLIGHT BAR
==============================*/

.hero-content::before {
  content: "";

  display: block;

  width: 70px;

  height: 5px;

  border-radius: 20px;

  margin-bottom: 25px;

  background: linear-gradient(to right, var(--primary), var(--primary-light));
}

/*==============================
    HERO TEXT SHADOW
==============================*/

.hero-content h1 {
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.55);
}

/*==============================
    LINK ANIMATION
==============================*/

a {
  position: relative;
}

.signup-link a::after,
.options a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -2px;

  width: 0;

  height: 2px;

  background: var(--primary);

  transition: 0.35s;
}

.signup-link a:hover::after,
.options a:hover::after {
  width: 100%;
}

/*==============================
    SELECTION
==============================*/

::selection {
  background: var(--primary);

  color: #000;
}

/*==============================
    CUSTOM SCROLLBAR FIREFOX
==============================*/

* {
  scrollbar-width: thin;

  scrollbar-color: var(--primary) #111;
}

/*==============================
    HIDE AUTOFILL COLOR
==============================*/

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #101010 inset;

  -webkit-text-fill-color: #fff;

  transition: background-color 5000s ease-in-out 0s;
}

/*==============================
    IMAGE HELPERS
==============================*/

.rounded {
  border-radius: var(--radius);
}

.shadow {
  box-shadow: var(--shadow);
}

/*==============================
    FLEX HELPERS
==============================*/

.flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.space-between {
  justify-content: space-between;
}

/*==============================
    DISPLAY HELPERS
==============================*/

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

/*==============================
    SPACING HELPERS
==============================*/

.p-20 {
  padding: 20px;
}

.p-30 {
  padding: 30px;
}

.py-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/*==============================
    WIDTH HELPERS
==============================*/

.max-400 {
  max-width: 400px;
}

.max-500 {
  max-width: 500px;
}

.max-600 {
  max-width: 600px;
}

/*==============================
    BACKDROP HELPERS
==============================*/

.blur {
  backdrop-filter: blur(15px);
}

/*==============================
    ELEVATION
==============================*/

.elevate:hover {
  transform: translateY(-6px);
}

/*==============================
    BORDER HELPERS
==============================*/

.border-gold {
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/*==============================
    TEXT COLORS
==============================*/

.text-gold {
  color: var(--primary);
}

.text-white {
  color: #fff;
}

.text-gray {
  color: #a9a9a9;
}

/*==============================
    BACKGROUND COLORS
==============================*/

.bg-dark {
  background: #0b0b0b;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.05);
}

/*==============================
    PRINT
==============================*/

@media print {
  .background,
  .togglePassword,
  .google-btn {
    display: none;
  }
}

/*==============================
    END OF FILE
==============================*/
/*==============================
    SIGNUP PAGE ADDITIONS
==============================*/

.gap-15 {
  gap: 15px;
}

.select-field {
  width: 100%;
  height: 58px;
  background: #101010;
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  padding-left: 50px;
  padding-right: 20px;
  color: #fff;
  font-size: 15px;
  appearance: none;
  transition: var(--transition);
}

.select-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.select-field option {
  background: #111;
  color: #fff;
}

.strength-meter {
  width: 100%;
  height: 8px;
  background: #222;
  border-radius: 20px;
  overflow: hidden;
}

.strength-bar {
  width: 0%;
  height: 100%;
  border-radius: 20px;
  background: #ff4d4f;
  transition: all 0.3s ease;
}
/*====================================================
    SIGNUP PAGE
====================================================*/

/* Larger card for signup */
.signup-card {
  width: 650px;
  max-width: 95%;
  padding: 45px;
}

/*==============================
    TWO COLUMN LAYOUT
==============================*/

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-row .input-group {
  flex: 1;
}

/*==============================
    SELECT INPUT
==============================*/

.input-group select {
  width: 100%;
  height: 58px;

  background: #101010;
  border: 1px solid #2b2b2b;

  border-radius: 12px;

  padding-left: 50px;
  padding-right: 20px;

  color: #fff;

  font-size: 15px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  transition: 0.35s;
}

.input-group select:focus {
  border-color: var(--primary);

  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

.input-group select option {
  background: #111;
  color: #fff;
}

/*==============================
    PASSWORD STRENGTH
==============================*/

.password-strength {
  margin-top: -8px;
  margin-bottom: 20px;
}

.strength-bar {
  width: 100%;
  height: 8px;

  background: #222;

  border-radius: 20px;

  overflow: hidden;
}

.strength-fill {
  width: 0%;

  height: 100%;

  background: #ff3b30;

  transition: 0.4s;
}

.password-strength small {
  display: block;

  margin-top: 8px;

  color: #aaa;

  font-size: 13px;
}

/*==============================
    TERMS
==============================*/

.terms {
  margin: 20px 0 28px;

  font-size: 14px;
}

.terms label {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  color: #cfcfcf;

  line-height: 24px;
}

.terms input {
  width: 18px;
  height: 18px;

  accent-color: var(--primary);

  margin-top: 3px;
}

.terms a {
  color: var(--primary);

  font-weight: 600;
}

.terms a:hover {
  color: var(--primary-light);
}

/*==============================
    INPUT SPACING
==============================*/

.signup-card .input-group {
  margin-bottom: 20px;
}

/*==============================
    PLACEHOLDER
==============================*/

.signup-card input::placeholder,
.signup-card select {
  color: #888;
}

/*==============================
    FOCUS EFFECT
==============================*/

.signup-card input:focus,
.signup-card select:focus {
  transform: translateY(-2px);
}

/*==============================
    MOBILE STACK
==============================*/

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .signup-card {
    padding: 30px;
  }
}
