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

 body {
     font-family: 'Inter', sans-serif;
     min-height: 100vh;
     background: #0f0f23;
     position: relative;
     overflow-x: hidden;
 }

 /* Animated gradient background */
 .gradient-bg {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(-45deg, #0f0f23, #1a1a3e, #2d1b4e, #1a1a3e);
     background-size: 400% 400%;
     animation: gradientShift 15s ease infinite;
     z-index: 1;
 }

 @keyframes gradientShift {
     0% {
         background-position: 0% 50%;
     }

     50% {
         background-position: 100% 50%;
     }

     100% {
         background-position: 0% 50%;
     }
 }

 /* Floating orbs */
 .orb {
     position: fixed;
     border-radius: 50%;
     filter: blur(80px);
     opacity: 0.4;
     animation: float 20s ease-in-out infinite;
     z-index: 2;
 }

 .orb1 {
     width: 400px;
     height: 400px;
     background: linear-gradient(135deg, #667eea, #764ba2);
     top: -200px;
     left: -200px;
     animation-delay: 0s;
 }

 .orb2 {
     width: 350px;
     height: 350px;
     background: linear-gradient(135deg, #f093fb, #f5576c);
     bottom: -150px;
     right: -150px;
     animation-delay: 5s;
 }

 .orb3 {
     width: 300px;
     height: 300px;
     background: linear-gradient(135deg, #4facfe, #00f2fe);
     top: 50%;
     left: 50%;
     animation-delay: 10s;
 }

 @keyframes float {

     0%,
     100% {
         transform: translate(0, 0) scale(1);
     }

     33% {
         transform: translate(100px, -50px) scale(1.1);
     }

     66% {
         transform: translate(-50px, 100px) scale(0.9);
     }
 }

 /* Grid pattern overlay */
 .grid-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-image:
         linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
         linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
     background-size: 50px 50px;
     z-index: 3;
     pointer-events: none;
 }

 /* Main container */
 .auth-wrapper {
     position: relative;
     z-index: 10;
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 40px 20px;
 }

 .auth-container {
     width: 100%;
     max-width: 480px;
     animation: fadeInUp 0.8s ease-out;
     margin: auto;
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(40px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Back button */
 .back-button {
     display: inline-flex;
     align-items: center;
     gap: 10px;
     padding: 12px 24px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 50px;
     color: #fff;
     text-decoration: none;
     font-size: 14px;
     font-weight: 500;
     backdrop-filter: blur(10px);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     margin-bottom: 30px;
 }

 .back-button:hover {
     background: rgba(255, 255, 255, 0.1);
     border-color: rgba(255, 255, 255, 0.2);
     color: #fff;
     transform: translateX(-5px);
 }

 .back-button i {
     font-size: 16px;
     transition: transform 0.3s ease;
 }

 .back-button:hover i {
     transform: translateX(-3px);
 }

 /* Auth card */
 .auth-card {
     background: rgba(255, 255, 255, 0.03);
     backdrop-filter: blur(20px) saturate(180%);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 28px;
     padding: 50px 45px;
     box-shadow:
         0 8px 32px rgba(0, 0, 0, 0.3),
         inset 0 1px 0 rgba(255, 255, 255, 0.1);
     position: relative;
     overflow: hidden;
 }

 .auth-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 2px;
     background: linear-gradient(90deg, transparent, #667eea, transparent);
     animation: borderGlow 3s linear infinite;
 }

 @keyframes borderGlow {
     0% {
         left: -100%;
     }

     100% {
         left: 100%;
     }
 }

 /* Header */
 .auth-header {
     text-align: center;
     margin-bottom: 40px;
 }

 .logo-wrapper {
     position: relative;
     width: 90px;
     height: 90px;
     margin: 0 auto 25px;
 }

 .logo-bg {
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, #667eea, #764ba2);
     border-radius: 22px;
     animation: logoRotate 10s linear infinite;
 }

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

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

 .logo-container {
     position: relative;
     width: 100%;
     height: 100%;
     background: rgba(15, 15, 35, 0.9);
     border-radius: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 2px solid rgba(255, 255, 255, 0.1);
 }

 .logo-container i {
     font-size: 42px;
     background: linear-gradient(135deg, #667eea, #764ba2);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     animation: iconPulse 2s ease-in-out infinite;
 }

 @keyframes iconPulse {

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

     50% {
         transform: scale(1.1);
     }
 }

 .auth-header h1 {
     font-size: 36px;
     font-weight: 800;
     background: linear-gradient(135deg, #fff, #e0e0e0);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin-bottom: 12px;
     letter-spacing: -0.5px;
 }

 .auth-header p {
     color: rgba(255, 255, 255, 0.6);
     font-size: 16px;
     font-weight: 400;
 }

 /* Form styles */
 .form-group {
     margin-bottom: 26px;
     position: relative;
 }

 .form-label {
     display: block;
     color: rgba(255, 255, 255, 0.9);
     font-size: 14px;
     font-weight: 600;
     margin-bottom: 10px;
     letter-spacing: 0.2px;
 }

 .input-group {
     position: relative;
 }

 .input-icon {
     position: absolute;
     left: 18px;
     top: 50%;
     transform: translateY(-50%);
     color: rgba(255, 255, 255, 0.4);
     font-size: 18px;
     transition: all 0.3s ease;
     z-index: 1;
 }

 .form-control {
     width: 100%;
     padding: 16px 20px 16px 52px;
     background: rgba(255, 255, 255, 0.05);
     border: 1.5px solid rgba(255, 255, 255, 0.1);
     border-radius: 14px;
     color: #fff;
     font-size: 15px;
     font-weight: 500;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     backdrop-filter: blur(10px);
 }

 .form-control::placeholder {
     color: rgba(255, 255, 255, 0.3);
 }

 .form-control:focus {
     outline: none;
     background: rgba(255, 255, 255, 0.08);
     border-color: #667eea;
     box-shadow:
         0 0 0 4px rgba(102, 126, 234, 0.1),
         0 8px 24px rgba(102, 126, 234, 0.15);
     transform: translateY(-2px);
 }

 .form-control:focus~.input-icon {
     color: #667eea;
     transform: translateY(-50%) scale(1.1);
 }

 .password-toggle {
     position: absolute;
     right: 18px;
     top: 50%;
     transform: translateY(-50%);
     background: none;
     border: none;
     color: rgba(255, 255, 255, 0.4);
     cursor: pointer;
     font-size: 18px;
     padding: 8px;
     transition: all 0.3s ease;
     z-index: 1;
 }

 .password-toggle:hover {
     color: #667eea;
     transform: translateY(-50%) scale(1.15);
 }

 /* Checkbox */
 .remember-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 28px;
 }

 .form-check {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .form-check-input {
     width: 20px;
     height: 20px;
     border: 2px solid rgba(255, 255, 255, 0.2);
     border-radius: 6px;
     background: rgba(255, 255, 255, 0.05);
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .form-check-input:checked {
     background: linear-gradient(135deg, #667eea, #764ba2);
     border-color: #667eea;
 }

 .form-check-label {
     color: rgba(255, 255, 255, 0.8);
     font-size: 14px;
     font-weight: 500;
     cursor: pointer;
     user-select: none;
 }

 .forgot-link {
     color: #667eea;
     text-decoration: none;
     font-size: 14px;
     font-weight: 600;
     transition: all 0.3s ease;
     position: relative;
 }

 .forgot-link::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 0;
     height: 2px;
     background: #667eea;
     transition: width 0.3s ease;
 }

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

 .forgot-link:hover {
     color: #7e8fef;
 }

 /* Submit button */
 .btn-submit {
     width: 100%;
     padding: 18px 24px;
     background: linear-gradient(135deg, #667eea, #764ba2);
     border: none;
     border-radius: 14px;
     color: #fff;
     font-size: 16px;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
     letter-spacing: 0.3px;
 }

 .btn-submit::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 ease;
 }

 .btn-submit:hover {
     transform: translateY(-3px);
     box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
 }

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

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

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

 .loading {
     width: 22px;
     height: 22px;
     border: 3px solid rgba(255, 255, 255, 0.3);
     border-top-color: #fff;
     border-radius: 50%;
     animation: spin 0.8s linear infinite;
 }

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

 /* Divider */
 .divider {
     display: flex;
     align-items: center;
     margin: 35px 0;
 }

 .divider::before,
 .divider::after {
     content: '';
     flex: 1;
     height: 1px;
     background: rgba(255, 255, 255, 0.1);
 }

 .divider span {
     padding: 0 20px;
     color: rgba(255, 255, 255, 0.5);
     font-size: 13px;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 /* Social buttons */
 .social-login {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 14px;
     margin-bottom: 35px;
 }

 .social-btn {
     padding: 14px 20px;
     background: rgba(255, 255, 255, 0.05);
     border: 1.5px solid rgba(255, 255, 255, 0.1);
     border-radius: 14px;
     color: rgba(255, 255, 255, 0.9);
     font-size: 15px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     backdrop-filter: blur(10px);
 }

 .social-btn:hover {
     background: rgba(255, 255, 255, 0.1);
     border-color: rgba(255, 255, 255, 0.2);
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
 }

 .social-btn i {
     font-size: 20px;
 }

 .social-btn.google:hover {
     border-color: #db4437;
 }

 .social-btn.github:hover {
     border-color: #fff;
 }

 /* Footer links */
 .auth-footer {
     text-align: center;
     padding-top: 30px;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
 }

 .auth-footer p {
     color: rgba(255, 255, 255, 0.6);
     font-size: 14px;
     margin-bottom: 0;
 }

 .auth-footer a {
     color: #667eea;
     text-decoration: none;
     font-weight: 700;
     transition: all 0.3s ease;
     position: relative;
 }

 .auth-footer a::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 0;
     height: 2px;
     background: linear-gradient(135deg, #667eea, #764ba2);
     transition: width 0.3s ease;
 }

 .auth-footer a:hover {
     color: #7e8fef;
 }

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

 /* Responsive design */
 @media (max-width: 576px) {
     .auth-wrapper {
         padding: 20px 15px;
     }

     .auth-card {
         padding: 40px 28px;
         border-radius: 24px;
     }

     .auth-header h1 {
         font-size: 28px;
     }

     .auth-header p {
         font-size: 14px;
     }

     .logo-wrapper {
         width: 75px;
         height: 75px;
     }

     .logo-container i {
         font-size: 36px;
     }

     .social-login {
         grid-template-columns: 1fr;
     }

     .back-button {
         padding: 10px 20px;
         font-size: 13px;
     }

     .form-control {
         padding: 14px 18px 14px 48px;
         font-size: 14px;
     }

     .btn-submit {
         padding: 16px 20px;
         font-size: 15px;
     }

     .remember-row {
         flex-direction: column;
         align-items: flex-start;
         gap: 15px;
     }
 }

 @media (max-width: 380px) {
     .auth-card {
         padding: 35px 22px;
     }

     .auth-header h1 {
         font-size: 24px;
     }

     .form-control {
         padding: 13px 16px 13px 46px;
     }
 }

 /* Accessibility */
 @media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
         animation-duration: 0.01ms !important;
         animation-iteration-count: 1 !important;
         transition-duration: 0.01ms !important;
     }
 }

 .error-text {
     display: block;
     font-size: 13px;
     margin-top: 4px;
     color: #dc3545;
     opacity: 0;
     transform: translateY(-5px);
     animation: fadeIn 0.3s ease forwards;
 }

 @keyframes fadeIn {
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .form-control {
     background: #1f1f1f !important;
     color: #ffffff !important;
     border: 1px solid #444;
 }

 .form-control:focus {
     border-color: #0d6efd;
     background: #1f1f1f;
     color: #fff;
     box-shadow: none;
 }

 .form-control::placeholder {
     color: #aaaaaa !important;
 }

 .auth-links {
     margin-top: 25px;
     text-align: center;
 }

 .auth-links p {
     font-size: 15px;
     color: #555;
     margin-bottom: 10px;
 }

 .login-link {
     color: #0061f2;
     text-decoration: none;
     transition: 0.2s;
 }

 .login-link:hover {
     color: #0044aa;
     text-decoration: underline;
 }

 .back-home-link {
     font-size: 14px;
     color: #6c757d;
     text-decoration: none;
     transition: 0.2s;
 }

 .back-home-link:hover {
     color: #000;
     transform: translateX(-3px);
 }
