:root {
      --primary: #f4b666;
      --secondary: #feb47b;
      --dark: #2c3e50;
      --light: #f8f9fa;
      --success: #4CAF50;
      --error: #e74c3c;
      --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .social-btn{
      text-decoration: none;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(135deg, #000000, #1a1a1a, #1a1a1a );
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--light);
      overflow-x: hidden;
    }

    /*@keyframes gradientBG {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }*/

    .particles {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    .container {
      position: relative;
      width: 100%;
      max-width: 420px;
      z-index: 2;
      perspective: 1000px;
    }

    .card {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      border-radius: 20px;
      width: 100%;
      overflow: hidden;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
      transform-style: preserve-3d;
      transition: var(--transition);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card:hover {
      transform: translateY(-10px) rotateX(5deg);
      box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    }

    .header {
      text-align: center;
      padding: 30px 20px 20px;
      position: relative;
      overflow: hidden;
    }

    .header::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      animation: progressBar 3s ease-in-out infinite;
    }

    @keyframes progressBar {
      0% { width: 0; }
      50% { width: 100%; }
      100% { width: 0; left: 100%; }
    }

    img {
      width: 200px;
      margin: 0 auto -40px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
      filter: brightness(0) invert(1);
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }

    .form-switch-container {
      position: relative;
      min-height: 440px;
      overflow: hidden;
    }

    .auth-form {
      transition: transform 0.6s ease-in-out, opacity 0.6s ease;
      position: absolute;
      width: 100%;
      padding: 25px;
      transform-style: preserve-3d;
      backface-visibility: hidden;
    }

    .auth-form.signup {
      transform: rotateY(180deg);
      opacity: 0;
      pointer-events: none;
    }

    .auth-form.active {
      transform: rotateY(0deg);
      opacity: 1;
      pointer-events: all;
    }

    .subtitle {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 25px;
      text-align: center;
      font-weight: 400;
    }

    .input-group {
      margin-bottom: 20px;
      position: relative;
    }

    .input-group i {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: rgba(255, 255, 255, 0.7);
      transition: var(--transition);
      z-index: 2;
    }

    .input-field {
      width: 100%;
      padding: 15px 15px 15px 45px;
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.15);
      color: var(--light);
      font-size: 16px;
      transition: var(--transition);
      outline: none;
      position: relative;
      z-index: 1;
    }

    .input-field::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    .input-field:focus {
      border-color: var(--primary);
      background: rgba(0, 0, 0, 0.25);
      box-shadow: 0 0 15px rgba(255, 126, 95, 0.3);
    }

    .input-field:focus + i {
      color: var(--primary);
      transform: translateY(-50%) scale(1.2);
    }

    .errorContainer {
      margin: 10px 0;
      padding: 10px;
      background: rgba(231, 76, 60, 0.2);
      border-radius: 8px;
      color: #ffb8b1;
      font-size: 14px;
      display: none;
      animation: fadeIn 0.3s ease;
    }

    .errorContainer.show {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .terms-container {
      margin: 15px 0;
      font-size: 0.9em;
      color: rgba(255, 255, 255, 0.7);
      display: flex;
      align-items: center;
    }

    .terms-checkbox {
      display: flex;
      align-items: center;
      cursor: pointer;
      position: relative;
      transition: var(--transition);
    }

    .terms-checkbox:hover {
      color: white;
    }

    .terms-checkbox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
    }

    .checkmark {
      display: inline-block;
      width: 20px;
      height: 20px;
      background: rgba(0, 0, 0, 0.2);
      border: 2px solid var(--primary);
      border-radius: 5px;
      margin-right: 10px;
      flex-shrink: 0;
      transition: var(--transition);
      position: relative;
    }

    .terms-checkbox input:checked ~ .checkmark {
      background: var(--primary);
    }

    .checkmark:after {
      content: "";
      position: absolute;
      display: none;
      left: 6px;
      top: 2px;
      width: 5px;
      height: 10px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    .terms-checkbox input:checked ~ .checkmark:after {
      display: block;
    }

    .authButton {
      background: linear-gradient(90deg, var(--primary));
      padding: 16px;
      border-radius: 12px;
      text-align: center;
      width: 100%;
      color: white;
      font-size: 16px;
      font-weight: 600;
      margin: 20px 0;
      display: block;
      cursor: pointer;
      border: none;
      transition: var(--transition);
      box-shadow: 0 5px 15px rgba(109, 64, 52, 0.4);
      position: relative;
      overflow: hidden;
      letter-spacing: 0.5px;
    }

    .authButton:hover {
      transform: translateY(-3px);
      box-shadow: 0 5px 10px rgba(255, 231, 95, 0.6);
    }

    .authButton:active {
      transform: translateY(1px);
    }

    .authButton::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -60%;
      width: 20px;
      height: 200%;
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(25deg);
      transition: all 0.6s;
    }

    .authButton:hover::after {
      left: 120%;
    }

    .switchAuth {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 15px;
      color: rgba(255, 255, 255, 0.7);
      font-size: 15px;
    }

    .switchLink {
      text-decoration: none;
      color: var(--primary);
      font-weight: 600;
      margin-left: 8px;
      transition: var(--transition);
      position: relative;
    }

    .switchLink::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: var(--transition);
    }

    .switchLink:hover {
      color: white;
    }

    .switchLink:hover::after {
      width: 100%;
    }

    .social-login {
      display: flex;
      justify-content: center;
      margin: 25px 0;
    }

    .social-btn {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 10px;
      background: rgba(255, 255, 255, 0.1);
      color: white;
      font-size: 18px;
      transition: var(--transition);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-btn:hover {
      transform: translateY(-5px);
      background: rgba(255, 255, 255, 0.2);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

     /*social-btn:nth-child(1):hover { background: #3b5998; }
    .social-btn:nth-child(2):hover { background: #1DA1F2; }
    .social-btn:nth-child(3):hover { background: #DB4437; }*/

    .divider {
      display: flex;
      align-items: center;
      margin: 20px 0;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.1);
    }

    .divider span {
      padding: 0 15px;
      color: rgba(255, 255, 255, 0.5);
      font-size: 14px;
    }

    @media (max-width: 480px) {
      .container {
        padding: 15px;
      }
      
      .card {
        border-radius: 15px;
      }
      
      .header {
        padding: 20px 15px 15px;
      }
      
      .logo {
        width: 100px;
        height: 100px;
      }
      
      .title {
        font-size: 1.7rem;
      }
      
      .auth-form {
        padding: 20px;
      }
      
      .input-field {
        padding: 12px 12px 12px 40px;
      }
    }

    /* Floating animation for visual elements */
    .floating {
      animation: floating 3s ease-in-out infinite;
    }

    @keyframes floating {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-15px); }
      100% { transform: translateY(0px); }
    }