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

 body {
   font-family: 'Inter', sans-serif;
   background: #f5f9ff;
   min-height: 100vh;
   padding: 40px 20px;
 }

 .container {
   max-width: 500px;
   width: 100%;
   margin: 0 auto;
 }

 .auth-wrapper {
   background: white;
   border-radius: 28px;
   padding: 32px 28px;
   box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
 }

 .logo {
   text-align: center;
   margin-bottom: 32px;
 }

 .logo-icon {
   width: 56px;
   height: 56px;
   background: linear-gradient(135deg, #667eea 0%, #3b82f6 100%);
   border-radius: 18px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 16px;
 }

 .logo-icon i {
   font-size: 28px;
   color: white;
 }

 .logo h1 {
   font-size: 24px;
   color: #1e293b;
   font-weight: 700;
 }

 .logo p {
   font-size: 13px;
   color: #64748b;
   margin-top: 6px;
 }

 .tabs {
   display: flex;
   gap: 12px;
   margin-bottom: 32px;
   background: #f1f5f9;
   border-radius: 16px;
   padding: 4px;
 }

 .tab-btn {
   flex: 1;
   padding: 12px 8px;
   background: transparent;
   border: none;
   border-radius: 12px;
   font-size: 14px;
   font-weight: 600;
   color: #64748b;
   cursor: pointer;
   transition: all 0.25s ease;
   font-family: 'Inter', sans-serif;
 }

 .tab-btn i {
   margin-right: 8px;
 }

 .tab-btn.active {
   background: white;
   color: #667eea;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
 }

 .tab-content {
   display: none;
 }

 .tab-content.active {
   display: block;
   animation: fadeIn 0.3s ease;
 }

 @keyframes fadeIn {
   from {
     opacity: 0;
     transform: translateY(8px);
   }

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

 .input-group {
   margin-bottom: 18px;
 }

 .input-group label {
   display: block;
   font-size: 13px;
   font-weight: 500;
   color: #334155;
   margin-bottom: 6px;
 }

 .input-group label i {
   margin-right: 6px;
   color: #667eea;
 }

 .input-wrapper {
   position: relative;
 }

 .input-wrapper i {
   position: absolute;
   left: 14px;
   top: 50%;
   transform: translateY(-50%);
   color: #94a3b8;
   font-size: 16px;
 }

 .input-wrapper input {
   width: 100%;
   padding: 12px 14px 12px 42px;
   border: 1.5px solid #e2e8f0;
   border-radius: 14px;
   font-size: 14px;
   font-family: 'Inter', sans-serif;
   transition: all 0.2s ease;
   background: white;
 }

 .input-wrapper input:focus {
   outline: none;
   border-color: #667eea;
   box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
 }

 .twofa-section {
   background: #f8fafc;
   border-radius: 20px;
   padding: 20px;
   margin: 20px 0;
   border: 1px solid #e2e8f0;
 }

 .twofa-header {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 16px;
   font-weight: 600;
   font-size: 14px;
   color: #1e293b;
 }

 .twofa-header i {
   color: #667eea;
   font-size: 18px;
 }

 .qr-container {
   text-align: center;
   margin-bottom: 16px;
   min-height: 160px;
   display: flex;
   justify-content: center;
   align-items: center;
 }

 .qr-placeholder {
   width: 140px;
   height: 140px;
   background: #e2e8f0;
   border-radius: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto;
   color: #64748b;
   font-size: 14px;
 }

 .qr-hint {
   font-size: 11px;
   color: #64748b;
   margin-top: 8px;
   text-align: center;
 }

 .secret-wrapper {
   display: flex;
   gap: 8px;
   margin-bottom: 16px;
 }

 .secret-wrapper .input-wrapper {
   flex: 1;
 }

 .btn-copy {
   background: #f1f5f9;
   border: 1.5px solid #e2e8f0;
   border-radius: 12px;
   padding: 0 16px;
   color: #667eea;
   cursor: pointer;
   transition: all 0.2s ease;
 }

 .btn-copy:hover {
   background: #e2e8f0;
 }

 .btn-primary {
   width: 100%;
   padding: 13px;
   background: linear-gradient(135deg, #667eea 0%, #3b82f6 100%);
   color: white;
   border: none;
   border-radius: 14px;
   font-size: 15px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s ease;
   margin-top: 8px;
 }

 .btn-primary i {
   margin-right: 8px;
 }

 .btn-primary:hover {
   transform: translateY(-1px);
   box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
 }

 .btn-primary:disabled {
   opacity: 0.6;
   cursor: not-allowed;
 }

 .message {
   margin-top: 20px;
 }

 .alert {
   padding: 12px 14px;
   border-radius: 14px;
   font-size: 13px;
   display: flex;
   align-items: center;
   gap: 10px;
 }

 .alert.success {
   background: #d1fae5;
   color: #065f46;
   border-left: 3px solid #10b981;
 }

 .alert.error {
   background: #fee2e2;
   color: #991b1b;
   border-left: 3px solid #ef4444;
 }

 @media (max-width: 560px) {
   .auth-wrapper {
     padding: 24px 20px;
   }

   .twofa-section {
     padding: 16px;
   }
 }